Hello. I have a gui and when you click on a button of that gui, your character loads. This is similar to reset character but it doesn’t kill you. I have a script but it doesn’t work. I need this because I have a clothing gui and I want it so it resets the clothing and goes back to the original avatar. Here’s my script : script.Parent.MouseButton1Click:Connect(function(pcall)
game.Players.LocalPlayer:LoadCharacter()
end)
you can only use LoadCharacter() on ServerScripts, make it so when you click the button a remote event is fired that loads the callers character
Could I have a script that shows this because I tried but it doesn’t seem to work
Make a RemoteEvent in ReplicatedStorage and name it LoadCharacter
LocalScript Inside the Button:
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.LoadCharacter:FireServer()
end)
Script in ServerScriptService:
game.ReplicatedStorage.LoadCharacter.OnServerEvent:Connect(function(Caller)
Caller:LoadCharacter()
end)
1 Like