Categories > Coding > Lua >

Make a character stay in the air?

Posts: 29

Threads: 18

Joined: Oct, 2021

Reputation: 0

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

  • 1

tar

CoolNickname

Posts: 143

Threads: 15

Joined: Jul, 2021

Reputation: 1

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

  • 0

https://imgur.com/a/oOomuUo

Posts: 1008

Threads: 66

Joined: Sep, 2021

Reputation: 20

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

  • 0

"Building blocks of imagination, united in the virtual realm, where creativity thrives and friendships ignite. Welcome to the Roblox revolution!" - chatgpt

 

Posts: 6

Threads: 2

Joined: Jun, 2021

Reputation: 0

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  

 

  • 0

Exploits i owned : Sirhurt, Skisploit, cocoZ, kiwiX, Krnl, Electron,yoink,oxygenu,dansploit,chaoscity,proxo,nonsensedaimond,Cozy 

Posts: 5

Threads: 0

Joined: Feb, 2022

Reputation: 0

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.

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )