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: How to CFrame objects?

Previous Thread :: Next Thread 
madiik is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
25 Dec 2012 07:22 AM
Okay, I've made a bat, But I wan't it to be swinged by CFrame, I didn't find an good Animation.

What should I do? I don't know how to CFrame parts when they're unanchored.

I think it should start something like this.

function equip()

--CFrames, CFrames, blahblabhblablahblaaa.
--I don't understand CFraming

end

equip()

function onClick()

--CFraming again.
--How can I create an Charge thing?
ball = Instance.new ("BodyThrust") FindFirstChild ("Ball")
--Blablablablabla, Actually I don't know how to do it, too. How can I make a ball when hit to the Bat to FLY AWAY?
end

script.Parent.MouseButton1Down:connect(onClick)

Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
25 Dec 2012 07:23 AM
game.Workspace.Ball.CFrame = CFrame.new(x,y,z)
Also to make the ball fly add some body velocity or something, and do some math or raycasting to find where the ball is heading.

For hippies: http://www.roblox.com/Peace-Shirt-TRANSPARENT-item?id=99429853
Report Abuse
madiik is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
25 Dec 2012 07:26 AM
Yeah, But how can I make a meter bar When it's the strongest and when it's the weakest?
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
25 Dec 2012 01:03 PM
GUI.

For hippies: http://www.roblox.com/Peace-Shirt-TRANSPARENT-item?id=99429853
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
25 Dec 2012 01:06 PM
Well, making somthing move with cframe is laggy. I'd make a custom animation.
Report Abuse
madiik is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
26 Dec 2012 04:07 AM
How can I make an custom animation? Because I don't know anything about that,
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
27 Dec 2012 11:26 AM
I don't think you can... Only ROBLOX can.

For hippies: http://www.roblox.com/Peace-Shirt-TRANSPARENT-item?id=99429853
Report Abuse
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
27 Dec 2012 11:27 AM
Dude stop advertising your stuff.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
27 Dec 2012 07:23 PM
Dude it's called a sig. (moron)

For hippies: http://www.roblox.com/Peace-Shirt-TRANSPARENT-item?id=99429853
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