Categories > Coding > Lua >
Make a character stay in the air?
Posted
How can I make a character to stay in the air.I tried to disable the gravity but it goes up.How can I make it freeze in the air.Is there an easier method?Let me know.Giving me an example too will be useful
Replied
after disabling gravity. You can set player's body parts velocities to zero.
workspace.Gravity = 0
for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
if v:IsA("BasePart") then
v.Velocity = Vector3.new(0,0,0)
end
end
Cancel
Post
https://imgur.com/a/oOomuUo
Replied
--freeze on
local vel = Instance.new("BodyVelocity")
vel.MaxForce = Vector3.new(999999,999999,999999)
vel.Velocity = Vector3.new(0,0,0)
vel.Parent = game.Workspace.RespectStudios.HumanoidRootPart
--freeze off
local vel = Instance.new("BodyVelocity")
vel.MaxForce = Vector3.new(16,50,16)
vel.Velocity = Vector3.new(0,0,0)
vel.Parent = game.Workspace.RespectStudios.HumanoidRootPart
Cancel
Post
"Building blocks of imagination, united in the virtual realm, where creativity thrives and friendships ignite. Welcome to the Roblox revolution!" - chatgpt
Replied
you could u BodyVelocity but if u jsut want to make it where u dont fall u can also make a part that is always under ur feet and make it invis
Cancel
Post
Exploits i owned : Sirhurt, Skisploit, cocoZ, kiwiX, Krnl, Electron,yoink,oxygenu,dansploit,chaoscity,proxo,nonsensedaimond,Cozy
Replied
Thanks for the helpful example. We analyzed gravity and I even wrote a paper about it. But due to the lack of information, this was difficult to do. Therefore, I decided to go to the site https://writinguniverse.com/free-essay-examples/philosophical-works/ to find out more about examples of essays that students use. Thanks to this, I was able to learn more about gravity.
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post