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

Morph script not working no matter what I do? [CLOSED]

Asked by 8 years ago
Edited 8 years ago
Roles = {"ClassD", "SecurityPersonnel"}
facetable = {"rbxassetid://305089380","rbxassetid://111523405","rbxassetid://58235423"}
function morph(plr)
local character = plr.Character
local playerrole = math.random(1,#Roles)
wait()
print(playerrole)
    if playerrole == "ClassD" then
    print(plr.Name .." is a Class-D Personnel")
    game.Workspace.ClassDMorph.Shirt:Clone().Parent = character
    game.Workspace.ClassDMorph.Pants:Clone().Parent = character
    game.Workspace.ClassDMorph["Body Colors"]:Clone().Parent = character
    character.Head.face.Texture = math.random(1, #facetable)
    elseif playerrole == "SecurityPersonnel" then
    print(plr.Name .." is a Security Personnel")
    else
    print("fREAKING FAILURE!!")
    end
end
game.Players.ChildAdded:connect(morph)

The console doesn't really say much. The script won't work either.

Answer this question