|
like
character flips upside down and floats up
the gravity thing is easy, just set it to like .5
but how does one rotate character and make it stay upside down
~The LMaD Deer~ |
|
vat21sJoin Date: 2010-06-07 Post Count: 2508 |
Try a BodyGyro |
|
|
me stupid tho
I dun speak lua
teach me the ways
~The LMaD Deer~ |
|
|
vat21sJoin Date: 2010-06-07 Post Count: 2508 |
BodyGyro.cframe=CFrame.Angles(0,math.rad(180),0)
BodyGyro.maxTorque=Vector3.new(0,1*(10^5),0)
Give that a shot, But make BodyGyro reference a bodyGyro you create in the players Torso. |
|
|
Im srry but idk what to do with that
I build not script
dats why I came here
~The LMaD Deer~ |
|
|
qq
I just need it so the whole character flips upside down
~The LMaD Deer~ |
|
|
I cri now
dun know how to use bodygyros
~The LMaD Deer~ |
|
vat21sJoin Date: 2010-06-07 Post Count: 2508 |
Turns out it's rather glitchy e.e |
|
|
mk
is there a better way
I can just set the gravity of the player to .5 to create the "upside down" effect
I dont know how to keep the character upside down though
~The LMaD Deer~ |
|
|
|
|
|
|
ty three
I actually understand this a bit
so bodygyro acts as a center of gravity?
~The LMaD Deer~ |
|
|
No.
It does its best to keep an object rotated to the rotation of the body gyro. Relative to world coordinates, at least. |
|
|
still dont understand how to make the roblox character to turn upside down
trying to make it so that when < is pressed then
1. Your Character flips upside down
2. Your Gravity pulls you upwards
~The LMaD Deer~ |
|
|
Body gyro makes its parent rotate so that its rotation is the same as the bodygyros set rotation. That would imply that you can turn the Z axis 180 degrees to flip an object upside down. Its a bit more complicated than that, so go into test mode and use the command line to change a bodygyro properties in real time to see how it works. |
|
|
|
Essentially I just need to make it so when > (Or any Key) is pressed, your character's default position is swapped to upside down
sooo
can anyone help meh here
~The LMaD Deer~ |
|
|
FortixsJoin Date: 2008-12-15 Post Count: 3967 |
I used BodyForce, and that seemed to work pretty effectively:
part = game.Workspace.Part --the part you want to float
Instance.new("BodyForce", part) --adds a BodyForce object in the part
part.BodyForce.force = Vector3.new(0, 196.2, 0) * part:GetMass()
The gravity in roblox is interestingly 196.2 studs/sec^2, which is 9.81 meters/sec^2 * 20, meaning that 20 studs is equivalent to 1 meter. |
|
robotmegaJoin Date: 2009-05-16 Post Count: 14599 |
game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0, math.rad(180), 0) |
|
|
if 20 studs was equivalent to a meter wouldnt your character only be like a foot tall?
~The LMaD Deer~ |
|
|
ty robot and mega
you each made 1/2 of the script lol
~The LMaD Deer~ |
|