Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 16 Dec 2011 01:31 PM |
| I didn't know models have CFrame... |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2011 01:40 PM |
Hes CFrameing it's children i think.
|
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 16 Dec 2011 02:12 PM |
| I agree with pokemon, he it telling us that children of the model were cframed. :D |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2011 02:16 PM |
Workspace = Game:GetService("Workspace")
for index, child in pairs(Workspace.Lava:GetChildren()) do if child:IsA("BasePart") then child.CFrame = child.CFrame * CFrame.new(0, -1, 0) end) end end
You parented a model in it, so now it will only move all the parts. |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 16 Dec 2011 02:34 PM |
Or..
for _,v in pairs(Workspace.Lava:children()) do pcall(function() v.CFrame = v.CFrame * CFrame.new(0,-1,0) end) end |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 17 Dec 2011 08:58 PM |
You must have your setup wrong, then. Do not blame our scripts. >:o |
|
|
| Report Abuse |
|
|
Elopus001
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 482 |
|
|
| 17 Dec 2011 09:00 PM |
| You have to cycle through the children. Try looking it up here : wiki.roblox.com |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 17 Dec 2011 09:02 PM |
Also, I am not sure why I didn't go off of your original script. I would have added a Vector3 to it.
for _,v in pairs(Workspace.Lava:children()) do pcall(function() v.CFrame = v.CFrame - Vector3.new(0,1,0) end) end |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 17 Dec 2011 09:02 PM |
| Well, subtracted, in this case. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 18 Dec 2011 06:47 AM |
@TheNewScripter
Why do you need to do
Workspace=game:GetService('Workspace')
Just do
Workspace=game.Workspace
and Workspace is already defined in every script. |
|
|
| Report Abuse |
|
|