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: Weld issue

Previous Thread :: Next Thread 
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
29 Aug 2013 03:56 PM
I made a tool, it's just a basic part with a gem on top. I have a script with a loop that changes the CFrame of Part0 (the gem) of the weld, but it only spins when the tool is anchored.

Any idea on what to do with it?
Report Abuse
Kuas is not online. Kuas
Joined: 06 May 2011
Total Posts: 518
29 Aug 2013 03:57 PM
Are you changing the CFrame of the actual part or the C0/C1 of the weld?
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
29 Aug 2013 04:02 PM
weld = script.Parent.Weld


while true do
weld.Part0.CFrame = weld.Part0.CFrame * CFrame.Angles(0,.1,0)
wait(.01)
end
Report Abuse
Kuas is not online. Kuas
Joined: 06 May 2011
Total Posts: 518
29 Aug 2013 04:04 PM
That won't work because the weld is holding it in place. You need to change the C0 or C1 of the weld.

weld.C0 = weld.C0* CFrame.Angles(0,.1,0)
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
29 Aug 2013 04:06 PM
I've done that already, the gem flies in a circle around the shaft instead of rotating.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
29 Aug 2013 04:07 PM
Try this instead --

Make a motor.

Set the Part0 to the handle and the Part1 = Gem

Motor.C0 = CFrame.new( )* -- Where ever you want the gem to be at.
CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)
Motor.C1 = CFrame.new()*CFrame.Angles(0,math.pi/2,0)
Motor.DesiredAngle = 9999999999999999931398190359470212947659194368.999 -- Forever and eva
Motor.MaxVelocity = 0.15 -- That's how fast an average arm is.
Report Abuse
Kuas is not online. Kuas
Joined: 06 May 2011
Total Posts: 518
29 Aug 2013 04:08 PM
You tried both C0 and C1?
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
29 Aug 2013 04:10 PM
C1 isn't important until you use motors.
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