Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local boostPart = script.Parent
- local BOOSTED_JUMP_POWER = 125
- local function onPartTouch(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if humanoid then
- --boostPart.CanCollide = false
- local currentJumpPower = humanoid.JumpPower
- if currentJumpPower < BOOSTED_JUMP_POWER then
- humanoid.JumpPower = BOOSTED_JUMP_POWER
- wait(10)
- humanoid.JumpPower = currentJumpPower
- end
- end
- end
- boostPart.Touched:Connect(onPartTouch)
Add Comment
Please, Sign In to add comment