Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local char = owner.Character
- local hum = char:FindFirstChildWhichIsA'Humanoid'
- local lleg = char:FindFirstChild('Left Leg')
- local rleg = char:FindFirstChild('Right Leg')
- local player = owner
- local mouse = player:GetMouse()
- local head = char:FindFirstChild('Head')
- local doublejump = true
- mouse.KeyDown:Connect(function(key)
- if tonumber( string.byte(key) )==32 and hum.FloorMaterial==Enum.Material.Air and
- hum:GetState()==Enum.HumanoidStateType.Freefall and doublejump==true and
- workspace:FindFirstChild('∞jump',true)==nil then
- local stop = false
- doublejump = false
- local part = Instance.new("Part",char)
- part.Name = '∞jump'
- part.Size = Vector3.new(4,4,4)
- part.CFrame = head.CFrame + Vector3.new(0,-5.7,0)
- part.Anchored = true
- wait()
- if part then
- part.CanCollide = false
- part:Destroy()
- end
- while true do
- wait(.1)
- if hum.FloorMaterial~=Enum.Material.Air then
- doublejump = true
- break
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement