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 » Scripting Helpers
Home Search
 

Is there an eaisier way to do this?

Previous Thread :: Next Thread 
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
07 Jun 2014 12:25 AM
function onClicked(clicked)
local P1 = script.Parent.Parent.P1
local P2 = script.Parent.Parent.P2
local P3 = script.Parent.Parent.P3
local P4 = script.Parent.Parent.P4
local P5 = script.Parent.Parent.P5
local P6 = script.Parent.Parent.P6
local P7 = script.Parent.Parent.Head
local R1 = P6.R1
local R2 = P6.R2
local R3 = P6.R3
local R4 = P6.R4
local R5 = P6.R5
local R6 = P6.R6
local R7 = P6.R7
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)


Also... How do I move all the parts without having to use each one?
Do I weld them?
Do I use the weld script?
I have one named HEAD, its all connected to it.
Report Abuse
Usering is online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
07 Jun 2014 12:26 AM
A for loop and CFrame
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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