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
 

Can someone share a script where

Previous Thread :: Next Thread 
GaIlium is not online. GaIlium
Joined: 26 Dec 2012
Total Posts: 6383
03 Sep 2013 08:04 PM
I can insert a script into every brick in a model so that all the parts are affected independently?
[I'm trying to make every block in my model spin on their own all at once.]
This is the spinning script:

a = script.Parent

while true do

a.CFrame = a.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)

wait()

end
Report Abuse
GaIlium is not online. GaIlium
Joined: 26 Dec 2012
Total Posts: 6383
03 Sep 2013 08:07 PM
No one?
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Sep 2013 08:07 PM
Put this script into the model.
put the spinscript into game.Lighting

local model = script.Parent
local array = model:GetChildren()
for k, i in ipairs(array) do
if i:IsA("Part") or i:IsA("Wedge") or i:IsA("CornerWedge") or i:IsA("TrussPart") then
po = game.Lighting:findFirstChild("SpinScript"):clone()
po.Disabled = false
po.Parent = i
end

Only trouble... Un-disabled scripts dont seem to work...
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