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 ".

1 comment
Np :D Can you upvote and accept as answer pls?