#Well there is no error and it doesn't work
6 messages · Page 1 of 1 (latest)
local cooldown = true
local agun = game.ReplicatedStorage.gun["Handgun"]
script.Parent.MouseClick:Connect(function(player)
local points = player.leaderstats.Cash
if points.Value <= 100 then
script.Parent.MaxActivationDistance = 0
points.Value = points.Value - 100
wait(0.7)
print("The sell successful")
agun.Parent = player.Backpack
wait(5)
script.Parent.MaxActivationDistance = 32
else
print("Not Enough Money")
end
end)
And the main issue is here
I want to make it when you have more then 100 you can buy it
change it to >=