Do I have to use a normal script for this?
local taps = 0
local tapgive = 1
--Tap Loader
spawn(function()
taps = game.Players.LocalPlayer.leaderstats.Taps.Value
script.Parent.TapGui.Frame.TextLabel.Text = taps .." taps"
end)
function tapclick()
taps = game.Players.LocalPlayer.leaderstats.Taps.Value
taps = taps + tapgive
game.Players.LocalPlayer.leaderstats.Taps.Value = game.Players.LocalPlayer.leaderstats.Taps.Value + tapgive
script.Parent.TapGui.Frame.TextLabel.Text = taps .." taps"
end
script.Parent.TapGui.TextButton.MouseButton1Click:Connect(tapclick)
I went to client while running game and it said 0 when in server-client it said more than 0

1 comment
you can't change leaderstats using localscript as it won't replicate