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
 

Re: Roblox Model Cframing?

Previous Thread :: Next Thread 
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 04:09 PM
What I Basically Want to do is have a the model move in ini ts lookvector value :o
Report Abuse
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 04:11 PM
and sry i have no clue how to do that :/ its probably not normal to do haha any help would be great guys thx
Report Abuse
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 04:28 PM
help Pl0x D:
Report Abuse
bourlo is not online. bourlo
Joined: 11 Aug 2009
Total Posts: 399
24 Jul 2012 04:31 PM
something like that?

parts = script.Parent:GetChildren()
for i,v in pairs(parts) do
pcall(function()
v.CFrame = v.CFrame + Vector3.new(5,0,0)
end)
end
Report Abuse
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 04:36 PM
ill try thanks so much :D
Report Abuse
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 04:42 PM
didnt work D: No errors either :/
Report Abuse
bourlo is not online. bourlo
Joined: 11 Aug 2009
Total Posts: 399
24 Jul 2012 04:46 PM
have the script inside the model,o wait,does the model have submodels as well?
Report Abuse
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 04:48 PM
no i did that i know how to script its just this is stumping me D:

function CFrameModel(model,centerofmodel,goalcframe)
for _,p in ipairs(model:GetChildren()) do
p.CFrame=goalcframe:toWorldSpace(centerofmodel:toObjectSpace(p.CFrame))
end
end


CframeModel(script.Parent,P6,)

what would i need for the third parameter in there?
Report Abuse
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 05:15 PM
helpz D:
Report Abuse
policechiefronaldo is not online. policechiefronaldo
Joined: 01 May 2010
Total Posts: 2789
24 Jul 2012 05:22 PM
No you got to put it in Command Bar. derrr.
Report Abuse
SWEAWFOCrocks is online. SWEAWFOCrocks
Joined: 11 Mar 2009
Total Posts: 573
24 Jul 2012 05:24 PM
Repeat
"Whats the third parameter"

i know that i can use it in the script also -.-
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