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
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 6383 |
|
| |
|
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 |
|
|