local text = script.Parent
local growBoodyEvent = game.ReplicatedStorage.BoodyGrow
local player = game.Players.LocalPlayer
local clickSound = text.Parent.Click
local growSound = text.Parent.Grow
local textSize = text.Size
local debounce = false
local counter = text.Parent.Counter
text.MouseButton1Click:Connect(function()
if not debounce then
debounce = true
counter.Amount.Value += 1
growBoodyEvent:FireServer(player)
clickSound:Play()
growSound:Play()
text:TweenSize(UDim2.new(0, 81,0, 72), “Out”, “Sine”, 0.2)
wait(0.2)
text:TweenSize(UDim2.new(0, 57,0, 54), “In”, “Sine”, 0.2)
wait(0.5)
debounce = false
end
end)
So you’re changing the counter value on the client, therefore the server still sees it as zero. Maybe you can send the counter value through the remote? Just make sure to remove the player argument in FireServer.
the problem here is you are updating the value in the local script and not a server script. The server will still see the value as 0 while the client will see it as what it’s meant to be. To fix this you must use a remote event to change the value.