✓ Accepted answer
Error explains itself. You're calling it from a local script. You will need a remote event. Also, in the future, do not use script.Parent.Parent.Parent.Parent to get the player. Use LocalPlayer to get the player from a local script.
remoteEvent.OnServerEvent:Connect(function(client)
client:LoadCharacter()
end)
Here i'm just listening on the server side for OnServerEvent to be fired. When it is, the character of the player who fired the remote gets reloaded.
And from the client you would call remoteEvent:FireServer() to fire the server event.
local function ReloadChar()
remoteEvent:FireServer()
end
script.Parent.Activated:Connect(ReloadChar)
3 comments
You may have to make it fire an event that connects to a server script, and then it loads the character from there.
Don't forget to accept my answer if it helps out.
ok got it thanks