Im making a teleport script thing, and suddenly the fireClient script doesn;t work anymore.
The error is this: FireClient: player argument must be a player object
The only problem I am having now is that I am giving the event a player object.
Script:
script.Parent.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
workspace.inCave:FireClient(plr, "out")
end)
Can anyone explain this weird error to me?