How do I fix this RemoteEvent script? I just started to learn how to use RemoteEvents. [Answered] [closed]
Asked by
8 years ago Edited 8 years ago
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()
:
01 | local event = workspace.plrDied |
02 | local val = script.Parent |
03 | local player = game.Players.LocalPlayer |
04 | event.OnServerEvent:connect( function () |
08 | script.Parent.Changed:connect( function () |
09 | if script.Parent.Value = = true then |
10 | workspace.plrDiedUI:FireClient(player) |
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?