hello! i want to make a morph gui that updates string value inside the player and when player joins, the script will assign character to the string value inside the player i tried to make a script but i cant figure out how to make it work
local john = game.Workspace.John
game.Players.PlayerAdded:Connect(function(plr)
game.Players.PlayerAdded:Connect(function(plr)
wait(2)
if plr.AvatarStats.AvatarID.Value == "john" then
local johnclone = john:Clone()
johnclone.Parent = john.Parent
plr.Character:Destroy()
plr.Character = johnclone
end
end)
end)

8 comments
Wait so what exactly isnt working?
idk it gives no error in the output and i cant figure out whats the error
how long have you been scripting on roblox for? Past programming experience? How much do you know?
im pretty new into scripting i started scripting 2 months ago
i tried the script i used and the players character doesnt change into the morph
If you are that new, you shouldnt be trying to do morphs. You gotta understand physics and how the character works. Read up on that in three places. Roblox forums, Scripting helpers, and the Roblox Documentations. You can start with this: https://create.roblox.com/docs/reference/engine/classes/Player. Also practice. I believe this website should be used for help, not for answers. This means if you
ok thank you
If you dont even know what the problem is then you shouldnt post, i believe. I recommend you understand why it doesnt work or where the problem is, or at least try to understand instead of coming here and having someone do it for you.