Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NLS([[
- for i,v in pairs(owner.Character:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanTouch = false
- end
- end
- wait(0.1)
- owner.Character.Torso.CanTouch = true
- touchedlol = false
- RootPart = owner.Character.HumanoidRootPart
- local function touch(hit)
- if hit then
- touchedlol = true
- end
- end
- local function touchnot(hit)
- if hit then
- touchedlol = false
- end
- end
- owner.Character.Humanoid:GetPropertyChangedSignal("Jump"):Connect(function()
- if touchedlol and owner.Character.Humanoid.Jump then
- look = owner.Character.Torso.CFrame.LookVector * -2.5
- RootPart.Velocity =
- RootPart.Velocity +
- Vector3.new(0, owner.Character.Humanoid.JumpPower * 1, 0) +
- (look * owner.Character.Humanoid.JumpPower)
- end
- end)
- owner.Character.Torso.Touched:connect(touch)
- owner.Character.Torso.TouchEnded:connect(touchnot)
- wait(0.1)
- grab = true
- ]],owner.PlayerGui)
Add Comment
Please, Sign In to add comment