Hello,
I've been coding a game and I am at the stage where I want everyone to see a GUI when a specific player dies. Here is my script:
local RS = game:GetService("ReplicatedStorage")
local Win = RS:WaitForChild("Win")
local WinGUIEvent = RS:WaitForChild("WinGUIEvent")
Win.OnServerEvent:Connect(function()
print("The Target has died")
WinGUIEvent:FireClient() -- This is the problem
end
end)
Whenever a player dies the Win event runs. It should then run the WinGUIEvent event but it errors. In the output it says "FireClient: player argument must be a Player object". I assume I should add something between the brackets but I'm not sure what.
If anyone could help it would be much appreciated.

1 comment
Thank you so much! You solved my problem!!! :D