I was spended like 20 minutes to search for an answer, but result didn't appear. You can see EXAMPLE code, that means i dont use it in game.
--Client script--
remote = game.ReplicatedStorage:WaitForChild("RemoteEvent")
rng = math.random(0,100) --Defining variable
remote:FireServer(rng) --Firing this with variable
--Server script--
remote = game.ReplicatedStorage:WaitForChild("RemoteEvent")
function Print()
print(rng) --Using that variable, also, there saying that this is unknown global
end
remote.OnServerEvent:Connect(Print) --Connecting script
If you try to run this code, you will get "nil". I hope you understand my issue.

4 comments
for your code i'd say you just need to add "rng" as a parameter in your Print() function
I still don't understand. Why in local script there is ExampleVariable, but in server there is just "exampl"? Also, why is there not defined this variable?
For your last comment, i know it, i just write a example because i am too lazy write my all code.
the code is too long for the comment to display and it cuts it off for some reason, the full line of code is: game.ReplicatedStorage.exampleRemoteEvent.OnServerEvent:Connect(function(exampleVariable)