I have a one label shows a number (like 0,1,2,...) and a local script inside a button inside a Gui to make the number increase:
local Button = script.Parent
local label = script.Parent.Parent.TextLabel
Button.MouseButton1Click:Connect(function()
label.Text = label.Text + 1
end)
I click play, I click the button and the number increase. But when I go to server testing, the Text does not change.
This is just a simple example for my script. The reason is that I want to make the number of ammo that could buy in one time, like 1000 ammo, it cannot be done in just one click with the normal button (without the number). Number which is increased will be sent to the event.
Can someone explain? Thanks!
