i did the script but wont work ingame just in studio
Button = script.Parent.TextButton
Player = game.Players.LocalPlayer
Button.MouseButton1Down:connect(function()
Player.leaderstats.Money.Value = Player.leaderstats.Money.Value + 10
end)
i did the script but wont work ingame just in studio
Button = script.Parent.TextButton
Player = game.Players.LocalPlayer
Button.MouseButton1Down:connect(function()
Player.leaderstats.Money.Value = Player.leaderstats.Money.Value + 10
end)
local Button = script.Parent:WaitForChild('TextButton')
local Player = game.Players.LocalPlayer
local leader = Player:WaitForChild('leaderstats')
local Money = leader:WaitForChild('Money')
Button.MouseButton1Down:connect(function()
Money.Value = Money.Value + 10
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
thx so much :)
Edited for code block. Please provide explanation with your answers.