I've tried to send a variable using arguments. From Server to Client then it should print variable. The problem is when the script is running,then it's just printing " nil ". But how can I fix this?
My serverside script
local Event = game.ReplicatedStorage.Printy while true do wait(0.0555) local X = "hello" Event:FireAllClients(X) end
Clientside:
local Event = game.ReplicatedStorage.Printy Event.OnClientEvent:Connect(function(player,X) print(X) end)
It's always ending up printing " nil ".
On ServerEvent, you receive a player who fired the RemoteEvent, but on ClientEvent, you do not receive a player. Delete the player parameter for your function, because that's what X is :D