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
 

SelectionBox Help

Previous Thread :: Next Thread 
ScriptedCurse is not online. ScriptedCurse
Joined: 18 Jan 2013
Total Posts: 8282
25 Aug 2016 10:22 AM
I am trying to make it so a selectionbox would adornee to a player and the color of the selectionbox would be the players teamcolor, but it does not seem to work.

My script: game.Players.ChildAdded:connect(function(p)
local head = p.Head
local torso = p.Torso

local Larm = p["Left Arm"]
local Rarm = p["Right Arm"]
local Lleg = p["Left Leg"]
local Rleg = p["Right Leg"]

local SelectionBox = Instance.new("SelectionBox")
SelectionBox.Adornee = Larm
SelectionBox.Adornee = Rarm
SelectionBox.Adornee = torso
SelectionBox.Adornee = head
SelectionBox.Adornee = Lleg
SelectionBox.Adornee = Rleg

SelectionBox.SurfaceColor3 = Color3.new(p.TeamColor)
end)
game.Players.ChildRemoved:connect(function()
print(":(")
end)
Report Abuse
ScriptedCurse is not online. ScriptedCurse
Joined: 18 Jan 2013
Total Posts: 8282
25 Aug 2016 10:25 AM
Anyone???
Report Abuse
ScriptedCurse is not online. ScriptedCurse
Joined: 18 Jan 2013
Total Posts: 8282
25 Aug 2016 10:29 AM
Anyone?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Report Abuse
WrightPhillips99 is not online. WrightPhillips99
Joined: 27 Jun 2015
Total Posts: 667
25 Aug 2016 10:30 AM
Me and head and torso are for character and the selesctionbox color could be done better plus You need to do team.TeamColor
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