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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
16 Dec 2011 01:10 PM
[ Content Deleted ]
Report Abuse
SirSpence99 is not online. SirSpence99
Joined: 08 Nov 2008
Total Posts: 302
16 Dec 2011 01:31 PM
I didn't know models have CFrame...
Report Abuse
pokemon46804 is not online. pokemon46804
Joined: 02 Sep 2010
Total Posts: 373
16 Dec 2011 01:40 PM
Hes CFrameing it's children i think.
Report Abuse
Miro034 is not online. 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
TheNewScripter is not online. TheNewScripter
Joined: 02 Mar 2010
Total Posts: 2432
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 is not online. 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 is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
17 Dec 2011 08:27 AM
[ Content Deleted ]
Report Abuse
grimm343 is not online. 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 is not online. 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 is not online. 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 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
17 Dec 2011 09:02 PM
Well, subtracted, in this case.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
18 Dec 2011 06:33 AM
[ Content Deleted ]
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
18 Dec 2011 06:34 AM
[ Content Deleted ]
Report Abuse
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
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
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