Why in Filtering Enabled when I respawn a player using;
game.ReplicatedStorage.LoadCharacter:InvokeServer(script.Parent.Parent.Parent) function game.ReplicatedStorage.LoadCharacter.OnServerInvoke(plr) plr:LoadCharacter() end
It not take them to the correct spawn Location. Please help!
Because they have to be in two serperate scripts. The InvokeServer
has to be used from client, to call a server, while OnServerInvoke
handles the invokes made by server.
LocalScript:
game.ReplicatedStorage.LoadCharacter:InvokeServer(script.Parent.Parent.Parent)
Script(server script):
function game.ReplicatedStorage.LoadCharacter.OnServerInvoke(plr) plr:LoadCharacter() end