i want make a shop when you have 50$ you can add speed but it's don't work
local player = script.Parent.Parent.Parent.Parent.Parent
local Money = player.Stats.Points
function buy()
if Money.Value >= 10 then
Money.Value = Money.Value - 10
game.Workspace:FindFirstChild("Humanoid").WalkSpeed = 50
end
end
script.Parent.MouseButton1Down:connect(buy)

1 comment
Your grammar don't working either huh?