local plr = game.Players.LocalPlayer local replicatedstorage = game:GetService('ReplicatedStorage') script.Parent.MouseButton1Click:connect(function() if plr.Backpack:FindFirstChild('FireGravityCoil')or plr.StarterGear:FindFisrtChild('FireGravityCoil')or game.Workspace[plr.Name]:FindFirstChild('FireGravityCoil')then script.Parent.Parent.TextLabel.Text = 'You have already bought this item' wait(3) script.Parent.Parent.TextLabel.Text = 'Welcome,sir' else if plr.Leaderstates.POINTS.Value >= 2000 then replicatedstorage.FireGravityCoil:Clone().Parent = plr.Backpack replicatedstorage.FireGravityCoil:Clone().Parent = plr.StarterGear else local cashrequired = 2000 - plr.leaderstats.POINTS.Value script.Parent.Parent.TextLabel.Text = 'You need'..cashrequired..'more points to buy this item' wait(3) script.Parent.Parent.TextLabel.Text ='Welcome,Sir' end

end end)

2 comments

0

Please use code blocks.

0

You have a typo in line 5