Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

OnClientEvent is not working? no thing in output either

Asked by 4 years ago

Server Script

local remote = game.ReplicatedStorage:WaitForChild('RemoteEvent')

remote:FireAllClients('Part')

Local Script

local remote = game.ReplicatedStorage:WaitForChild('RemoteEvent')




remote.OnClientEvent:Connect(function(player,Part)
    print(Part,player)

end)    

1 answer

Log in to vote
0
Answered by
Elixcore 1337 Moderation Voter
4 years ago

There is no player argument. you are firing from the server to the players.

the parameter for the localscript is only "Part", no 'player'.

Ad

Answer this question