|
| 20 Oct 2016 05:08 PM |
I need help with this script.
Can someone add an exception to the script, to where if the owner joins they would have other colors?
game.Workspace.ChildAdded:connect(function(plr) local name = plr.Name local playerinplayers = game.Players:FindFirstChild(plr.Name) if playerinplayers ~= nil then playerinplayers.CanLoadCharacterAppearance = false plr.Head.face.Texture = "rbxassetid://278713946" --Just put the face decal id after it says, "rbxassetid://" local bodycolors = Instance.new("BodyColors", plr) bodycolors.RightArmColor = BrickColor.new("Pastel brown") --Change "Pastel brown" to what color you want the Right arm color to be. bodycolors.LeftArmColor = BrickColor.new("Pastel brown") --Change "Pastel brown" to what color you want the Left arm color to be. bodycolors.LeftLegColor = BrickColor.new("Dark stone grey") --Change "Dark stone grey" to what color you want the left leg color to be. bodycolors.RightLegColor = BrickColor.new("Dark stone grey") --Change "Pastel brown" to what color you want the Right leg color to be. bodycolors.TorsoColor = BrickColor.Random() --If you don't want a random color for torso, delete "Random()" and change it to "new("THECOLOROFTORSEHERE")" bodycolors.HeadColor = BrickColor.new("Pastel brown") --Change "Pastel brown" to what color you want the head color to be. end end)
|
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 08:22 PM |
game.Workspace.ChildAdded:connect(function(plr) local name = plr.Name local playerinplayers = game.Players:FindFirstChild(plr.Name) if playerinplayers ~= nil then if plr.Name == "Owners Name Here" then --Checks if plr is owner --Owners Colors here
else --If they arent the owner do these colors VVV
playerinplayers.CanLoadCharacterAppearance = false plr.Head.face.Texture = "rbxassetid://278713946" --Just put the face decal id after it says, "rbxassetid://" local bodycolors = Instance.new("BodyColors", plr) bodycolors.RightArmColor = BrickColor.new("Pastel brown") --Change "Pastel brown" to what color you want the Right arm color to be. bodycolors.LeftArmColor = BrickColor.new("Pastel brown") --Change "Pastel brown" to what color you want the Left arm color to be. bodycolors.LeftLegColor = BrickColor.new("Dark stone grey") --Change "Dark stone grey" to what color you want the left leg color to be. bodycolors.RightLegColor = BrickColor.new("Dark stone grey") --Change "Pastel brown" to what color you want the Right leg color to be. bodycolors.TorsoColor = BrickColor.Random() --If you don't want a random color for torso, delete "Random()" and change it to "new("THECOLOROFTORSEHERE")" bodycolors.HeadColor = BrickColor.new("Pastel brown") --Change "Pastel brown" to what color you want the head color to be.
end end)
|
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 08:24 PM |
| ^ You do realize game has a Place Owner property? |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 08:25 PM |
true, Forgot about that. Regardless tho it still works
|
|
|
| Report Abuse |
|
|