generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

owner script help

Previous Thread :: Next Thread 
developer_hunt is not online. developer_hunt
Joined: 19 Mar 2016
Total Posts: 4
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
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
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
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
20 Oct 2016 08:24 PM
^ You do realize game has a Place Owner property?
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
20 Oct 2016 08:25 PM
true, Forgot about that. Regardless tho it still works


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image