jumpover meaning code example

Example: jumpover meaning

local player = game.Players.LocalPlayer
repeat wait() until player.Character
local humanoid = player.Character:WaitForChild("Humanoid")
local bodyVelocity = script.Parent:WaitForChild("BodyVelocity")
local jumpover = true

function jump()
	jumpover = false
	wait(.3)
	jumpover = true
	local currentstate = humanoid:GetState()
	if currentstate == Enum.HumanoidStateType.Freefall then
		bodyVelocity.MaxForce = Vector3.new(0,10000,0)
	end
end

humanoid.StateChanged:Connect(function(oldstate, newstate)
	
end)

Tags:

Misc Example