local player = game.Players.LocalPlayer
local pints = player:waitForChild('leaderstats').Points
script.Parent.MouseButton1Click:connect(function()
if Points.Value >= 20 and not player.Backpack:FindFirstChild('GravityCoil')and not player.Character:FindFirstChild('GravityCoil') then
-- Player can afford the item
game.ReplicatedStorage.Gears.GravityCoil.Clone().Parent = player.Backpack
end
end)
|