Basically, I made my own model to replace the character model that you spawn with. It works fine at first, however after a few seconds of living as the new model, the player suddenly respawns and reverts to his default looks (Much like the reset character button). Why is this happening, and how can I fix it?
I created a Text Button (GUI) that once contains the following script:
local plr = game.Players.LocalPlayer local cam = workspace.CurrentCamera script.Parent.MouseButton1Click:connect(function() local model = game.ReplicatedStorage.PlayerModel:Clone() -- Create the custom model to replace the character model.Name = plr.Name -- Rename it to the player's name model.Parent = workspace -- Place it in the workspace plr.Character = model -- Replace the players default character with the new custom model game.ReplicatedStorage.LocalScripts.Animate:Clone().Parent = plr.Character -- Insert the script that will animate the character cam.CameraSubject = plr.Character.Humanoid -- Make the camera follow the new character end)
I should note that this happens only when testing in a server. This does not happen in solo mode.
ROBLOX. Studio has replay,play,and a stop button did you press any of them by mistake? Did you test this in a script builder perhaps?