i want to make the hover nozzle from mario sunshine which makes you float in the air for a while and you can move around while doing it but when i did it my character cannot move around and just floats up i am trying to recreate it by using body velocity set to (0,2,0) is there anyway i could disable gravity on the player so i can use body force instead since body velocity didnt allow the player to move
local UIS = game:GetService(‘UserInputService’)
local Player = game.Players.LocalPlayer
local Character = Player.Character
canfloat = true
isfloat = false
local floatnum = 10
UIS.InputBegan:connect(function(input)–When a player has pressed LeftShift it will play the animation and it will set the normal walking speed (16) to 35.
if input.KeyCode == Enum.KeyCode.LeftShift and canfloat == true then
canfloat = false
isfloat = true
local BV = Instance.new(“BodyVelocity”, Player.Character.HumanoidRootPart)
BV.Name = “Fly”
BV.MaxForce = Vector3.new(0, math.huge, 0)
BV.Velocity = Vector3.new(0,floatnum,0)
end
end)
UIS.InputEnded:connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift and isfloat == true then
local function preventfloat()
Player.Character.HumanoidRootPart.Fly:Destroy()
end
task.spawn(preventfloat)
isfloat = false
wait(0.4)
canfloat = true
end
end)