![]() ![]() Local sgui = pgui:WaitForChild('ScreenGui') Local pgui = player:WaitForChild('PlayerGui') When I tested in ROBLOX studio, it worked perfectly, but when I play the game on, it doesn't work. If you don’t know how these BodyObjects work, I would open a new place, place a part in, then place each BodyObject separately and change the properties to see what they do (you need to have the game running with either play or run.So I have a script that brings up text boxes with dialog (someone on this site helped to make it work). Hopefully I explained everything well enough. Also, you might have to play with the P and D properties of BodyPosition and BodyGyro (And just in-case you didn’t know, 1e5 means one with five zeros.) There’s probably a better and more methodical way of setting MaxForce and MaxTorque, maybe someone will explain. If you do it too high, it will disappear. You might have to play with MaxForce and MaxTorque and the 1e5. Same as above, add a - if it turns the wrong way.During loop, do: BodyGyro.CFrame = BodyGyro.CFrame*CFrame.Angles(0,*SteeringSpeed,0).If it moves the wrong way, add a - to Speed. ![]() During loop, do: BodyVelocity.Velocity = Vector3.new(0,0,*Speed).+5 is how far away the ship will be from where the ray it the floor.During loop, do: BodyPosition.Position = Vector3.new(0,rayHitPosition.y+5,0).Set BodyVelocity.MaxForce = Vector3.new(1e5,0,1e5).Set BodyGyro.MaxTorque = Vector3.new(1e5,1e5,1e5).Set BodyPosition.MaxForce = Vector3.new(0,1e5,0).Create BodyPosition, BodyVelocity, and BodyGyro.The best and easiest method I’ve seen is to do this: First time I’ve seen something like this. You have a very interested method of moving the vehicle. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |