Shadow.MouseButton1Down:connect(function()
if Plyr.Credits.Value >= 1000 and Plyr.Shadow.Value == false then
script.Parent.Shopp.Type.Shadow.Desc.Price.Text = "Owned"
script.Parent.Shopp.Type.Current.Text = "Current: Shadow"
Plyr.Credits.Value = Plyr.Credits.Value - 1000
Plyr.Shadow.Value = true
Plyr.PlayerGui:WaitForChild("MType")
Plyr.PlayerGui.MType = 3
elseif Plyr.Shadow.Value == true then
Plyr.PlayerGui:WaitForChild("MType")
Plyr.PlayerGui.MType = 3
script.Parent.Error.Text = "You are now using 'Shadow'"
script.Parent.Shopp.Type.Current.Text = "Current: Shadow"
script.Parent.Error.Visible = true
wait(3)
script.Parent.Error.Visible = false
else
script.Parent.Error.Text = "You do not have enough credits to purchase that!"
script.Parent.Error.Visible = true
wait(3)
script.Parent.Error.Visible = false
end |