Hello, I am having a problem in my script revolving the parameters of :FireClient
. I used print statements to find out what the player is. The first local script and the server script both printed out “SuperMari0085” (My User name), but the second local script that is using the OnClientEvent
event prints “nil”. Can someone help me find out why this is happening. I checked the Devforum for answers but none of them helped my situation. Here is some script of the printing and the remoteevents.
First Local Script
remotes.Reaper.ReaperSleep:FireServer()
print(player) -- Prints SuperMari0085
Server Script
print(player) --Also prints SuperMari0085
remote:FireClient(player)
Second Local Script
remote.OnClientEvent:Connect(function(player)
print(player) --Prints nil for some reason
end)