-
What do you want to achieve?
The int value to decrease -
What is the issue?
Int value wont decrease but the function works and everything is labelled right -
What solutions have you tried so far?
Looked at various posts about int values not changing, couldnt find any with this problem
local RE = game.ReplicatedStorage.TankEvents.SmallTankEvent
local tankV = game.ReplicatedStorage.TankEvents.TankValues
local plr = script.Parent.Parent.Parent.Parent
tankV:Clone().Parent = plr
local tankVC = plr:WaitForChild("TankValues")
RE.OnServerEvent:Connect(function(Player)
tankVC.SmallTank.Value = tankVC.SmallTank.Value - 0.25
print(tankVC.SmallTank.Value)
end)
notes:
/RE works
/Print the value
/Done in server script
/Server script found in starterGui