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: CFrame/LookVector Stuff... I think

Previous Thread :: Next Thread 
link7002 is not online. link7002
Joined: 26 May 2009
Total Posts: 545
20 Apr 2012 06:49 PM
To start, I would like to state I am not requesting anything, but instead asking on how I should/can start, and what to use.

I am trying to make a moving statue. I simply am helping a friend create part of his game, and I'm responsible for a magic realm. Anyways, I am looking to CFrame the statue to move it's arm. But, since my friend will be receiving the model I do not know how the model will be placed, so therefor the statue will have to work no matter which way it faces. Would someone be kind enough to help me with this? I know from a previous script I did that this creates the effect of a moving arm, but if faced the wrong way, looks completley wrong:

while wait(0.3) do
script.Parent.CFrame=CFrame.new(script.Parent.Position) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
wait(0.05)
script.Parent.CFrame=CFrame.new(script.Parent.Position) * CFrame.fromEulerAnglesXYZ(0, 0, 0.1)
wait(0.05)
script.Parent.CFrame=CFrame.new(script.Parent.Position) * CFrame.fromEulerAnglesXYZ(0, 0, 0.2)
wait(0.05)
script.Parent.CFrame=CFrame.new(script.Parent.Position) * CFrame.fromEulerAnglesXYZ(0, 0, 0.3)
wait(0.05)
script.Parent.CFrame=CFrame.new(script.Parent.Position) * CFrame.fromEulerAnglesXYZ(0, 0, 0.2)
wait(0.05)
script.Parent.CFrame=CFrame.new(script.Parent.Position) * CFrame.fromEulerAnglesXYZ(0, 0, 0.1)
wait(0.05)
script.Parent.CFrame=CFrame.new(script.Parent.Position) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
end

I am aware this script sucks, I was very amature (well, more than I am now, anyways.)

I apologise for the long post, please post a response or questions! Thanks in advanced, link7002!
Report Abuse
link7002 is not online. link7002
Joined: 26 May 2009
Total Posts: 545
20 Apr 2012 07:02 PM
Please?
Report Abuse
link7002 is not online. link7002
Joined: 26 May 2009
Total Posts: 545
20 Apr 2012 07:14 PM
Bump
Report Abuse
link7002 is not online. link7002
Joined: 26 May 2009
Total Posts: 545
20 Apr 2012 07:49 PM
Bump
Report Abuse
link7002 is not online. link7002
Joined: 26 May 2009
Total Posts: 545
20 Apr 2012 08:19 PM
25 views and no replies... lol
Bump
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