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

What is wrong with this Morph Script?

Asked by 8 years ago

game.Workspace.ChildAdded:connect(function(plr) local name = plr.Name local playerinplayers = game.Player:FindFirstChild(plr.Name) if playerinplayers ~= nil then playerinplayers.CanLoadCharacterAppearance = false plr.Head.face.Texture = "rbxassetid://" local bodycolors = Instance.new("BodyColors", plr) bodycolors.RightArmColor = BrickColor.new("Pastel brown") bodycolors.LeftArmColor = BrickColor.new("Pastel brown") bodycolors.LeftLegColor = BrickColor.new("Dark stone grey") bodycolors.RightLegColor = BrickColor.new("Dark stone grey") bodycolors.TorseColor = BrickColor.Random() bodycolors.HeadColor = BrickColor.new("Pastel Brown") end)

Can someone please inform me what is wrong with this? When I tested my world with this script, it entirely just did not work.

1 answer

Log in to vote
0
Answered by 8 years ago

In line 12 you misspelled torso, but here you go:

game.Workspace.ChildAdded:connect(function(plr)
local player = game.Players.LocalPlayer
local name = plr.Name
local playerinplayers = game.Players:FindFirstChild(plr.Name)
if playerinplayers ~= nil then
    playerinplayers.CanLoadCharacterAppearance = false
    plr.Head.face.Texture = "rbxassetid://"
    local bodycolors = Instance.new("BodyColors",plr)
    bodycolors.RightArmColor = BrickColor.new("Pastel brown")
    bodycolors.LeftArmColor = BrickColor.new("Pastel brown")
    bodycolors.LeftLegColor = BrickColor.new("Dark stone grey")
    bodycolors.RightLegColor = BrickColor.new("Dark stone grey")
    bodycolors.TorsoColor = BrickColor.Random()
    bodycolors.HeadColor = BrickColor.new("Pastel Brown")
end





end)
Ad

Answer this question