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 » Scripters
Home Search
 

Re: Rotation

Previous Thread :: Next Thread 
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Jan 2016 11:44 PM
what's wrong with this?


local slide = game.Workspace.Part47
local player = game.Players.LocalPlayer
repeat wait() until player.Character


slide.Touched:connect(function()
local leg = player.Character:FindFirstChild("Left Leg")
leg.Rotation = Vector3.new(-90, 3.607, -180)
end
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
01 Jan 2016 11:45 PM
Changing the rotation of the leg will cause it too detach from the character. Use CFrame.

leg.CFrame = leg.CFrame * CFrame.FromEulerAnglesXYZ(0, 50, 0)
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Jan 2016 11:45 PM
SRRY IGNORE THIS NVM!!!!
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Jan 2016 11:46 PM
thx, but what does eular mean?
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Jan 2016 11:47 PM
and also the output says this...


23:48:02.601 - Players.Player1.PlayerGui.LocalScript1:11: attempt to call field 'FromEulerAnglesXYZ' (a nil value)
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Jan 2016 11:51 PM
I DIDNT MEAN WAWT I SAID EARLIER I WAS A FOOL PLEASE HELP!!!!
Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
02 Jan 2016 12:14 AM
fromEulerAnglesXYZ.
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Jan 2016 10:42 AM
Advanced I did what you said but when I touch the brick, my character flies off the map!
Report Abuse
rvox is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
02 Jan 2016 10:50 AM
Euler angles are named after Leonhard Euler, a smart guy, they are the common rotations that people are familiar with (rotation among 3 axes)

roblox uses radians, so convert your rotation to radians
math.rad(degrees)

I do not believe you can rotate the leg without having to recreate the left hip joint

use CFrame.Angles() if you're going to use Euler angles, it's much shorter to type

Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Jan 2016 01:39 PM
so what your saying is instead of x.Rotation use math.rad?
Report Abuse
UnstableScript0 is not online. UnstableScript0
Joined: 21 Dec 2015
Total Posts: 1189
02 Jan 2016 02:21 PM
Use fromAxisAngle.

When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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