Hello, so I started to learn how to use RemoteEvents and I have a problem. Can I get some help? Output : 14:00:54.333 - FireClient: player argument must be a Player object
14:00:54.333 - Stack Begin
14:00:54.333 - Script 'Workspace.Values.playerDied.Script', Line 10
14:00:54.333 - Stack End
and my script that :FireClient()
:
local event = workspace.plrDied local val = script.Parent local player = game.Players.LocalPlayer event.OnServerEvent:connect(function() val.Value = true end) script.Parent.Changed:connect(function() if script.Parent.Value == true then workspace.plrDiedUI:FireClient(player) end end)
If you need more info please tell me. I'm hoping for some help.
Locked by Goulstem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?