|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 01 Jan 2016 11:46 PM |
| thx, but what does eular mean? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 01 Jan 2016 11:51 PM |
| I DIDNT MEAN WAWT I SAID EARLIER I WAS A FOOL PLEASE HELP!!!! |
|
|
| Report Abuse |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 02 Jan 2016 01:39 PM |
| so what your saying is instead of x.Rotation use math.rad? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|