This is the code I just write:
-Local script:
local remoteEvent = game.ReplicatedStorage.RemoteEvent
local randomNumber = math.random(1,10)
remoteEvent:FireServer(randomNumber)
-Server script:
local remoteEvent = game.ReplicatedStorage.RemoteEvent
local intValue = workspace.IntValue.Value
local function changeValue(player, value)
print(value)
intValue = value
print(intValue)
end
remoteEvent.OnServerEvent:Connect(changeValue)
The weird thing is output actually print the changed value of intValue, but when i check intValue in the explore window, it still 0.
Here is the screenshot:
-Output:
https://paste.pics/eeaf3eec649ad3e578e190bfd6a92b9c
-Properties:
https://paste.pics/30f0de1873278b16a71822fe765b7672
*Just copy and paste, the link tool is broken :/
Someone help me please!

2 comments
I sent an answer.
I’m so confused. Is intValue suppose to be the random number?