Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to update players character from data from a string value?

Asked by 2 years ago

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)

0
Wait so what exactly isnt working? AlexanderYar 788 — 2y
0
idk it gives no error in the output and i cant figure out whats the error User#49314 0 — 2y
0
how long have you been scripting on roblox for? Past programming experience? How much do you know? AlexanderYar 788 — 2y
0
im pretty new into scripting i started scripting 2 months ago User#49314 0 — 2y
View all comments (4 more)
0
i tried the script i used and the players character doesnt change into the morph User#49314 0 — 2y
0
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 AlexanderYar 788 — 2y
0
ok thank you User#49314 0 — 2y
0
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. AlexanderYar 788 — 2y

Answer this question