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)
Closed as Non-Descriptive by User#19524
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?