#Jumppad

1 messages · Page 1 of 1 (latest)

lucid bough
#

So Im trying to make a jump pad for an obby but Im having troubles with making it have no delay between the jumps. The only way I could make it without the delay was making an assemblyline which however made the jumps inconsistent(as in sometimes I jump really low and sometimes I jump really high). Anybody knows what I can do? :<

#

here is the script : local pad = script.Parent
local jumpHeight = 50

pad.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
local rootPart = hit.Parent:FindFirstChild("HumanoidRootPart")

if humanoid and rootPart then
    local bodyVelocity = Instance.new("BodyVelocity")
    bodyVelocity.MaxForce = Vector3.new(0, math.huge, 0)
    bodyVelocity.Velocity = Vector3.new(0, jumpHeight, 0)
    bodyVelocity.Parent = rootPart

    game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
end

end)

sinful ravine
#

local pad = script.Parent
local jumpPower = 100

local character = hit.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
local rootPart = character:FindFirstChild("HumanoidRootPart")

if humanoid and rootPart then
    local currentVelocity = rootPart.Velocity
    rootPart.Velocity = Vector3.new(currentVelocity.X, 0, currentVelocity.Z)
    rootPart.Velocity = rootPart.Velocity + Vector3.new(0, jumpPower, 0)
    humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end

end)

maiden parrot
versed grail
#

u can just change the parts velocity

#

use AssemblyLinearVelocity

#

part.AssemblyLinearVelocity

#

script.Parent.Touched:Connect(function(part)
if part.Parent:FindFirstChildWhichIsA("Humanoid") then
local hrp : BasePart = part.Parent:FindFirstChild("HumanoidRootPart")

    hrp.AssemblyLinearVelocity = --pos
end

end)

lucid bough
#

like that?

#

script.Parent.Touched:Connect(function(part)
if part.Parent:FindFirstChildWhichIsA("Humanoid") then
local hrp : BasePart = part.Parent:FindFirstChild("HumanoidRootPart")
if hrp then
hrp.AssemblyLinearVelocity = Vector3.new(0, 50, 0)
end
end
end)

cerulean pendant
#

I will look at this later

lucid bough
limber lark
#

hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

#

@lucid bough

lucid bough
#

hmmmm

#

I want it to be as bouncy as on the first vid

#

tried asking chatgpt deepseek claude, youtube vids, forums, discord servers, some people in the vc, people in the scripting channels and yeah idk

limber lark
#

Man

#

I honestly think the problem is your fps

#

It makes it look like there's a delay

keen axle
#

roblox physics are bad

limber lark
#

Or you can try using applyforce instead of bodyvelocity

lucid bough
#

still nothing

limber lark
#

it'll be faster because you won't be creating a whole new instance

#

rootPart:ApplyImpulse(Vector3.new(0, 20000, 0))

#

its applyimpulse mb

#

if it doenst work at first try increasing the vertical force

keen axle
#

is this like asm linear velocity?

limber lark
#

you'd have to do some math to find the necessary force to lift the character to the desired height

#

but its really easy

lucid bough
# limber lark Or you can try using applyforce instead of bodyvelocity

local pad = script.Parent
local jumpForce = 1000

pad.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
local rootPart = hit.Parent:FindFirstChild("HumanoidRootPart")

if humanoid and rootPart then
    rootPart:ApplyImpulse(Vector3.new(0, jumpForce, 0))

    humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end

end)

#

like that?

limber lark
#

yea

#

i'd increase jumpForce

lucid bough
#

to 2k

#

?

#

or higher

limber lark
#

10k-20k

#

idk

lucid bough
#

wait can you vc perhaps?

#

theoretically

lucid bough
#

the other guy did it perfectly :<

#

so there IS a way do to it

keen axle
lucid bough
#

magician fr

lucid bough
balmy anvil
#

Alright

#

make sure the script you add is local

#

therefore the players bounce will be local

keen axle
#

thus faster physics

balmy anvil
#

anything else will interfear with others

#

yes

lucid bough
# balmy anvil make sure the script you add is local

local Players = game:GetService("Players")
local player = Players.LocalPlayer

local pad = script.Parent
local jumpHeight = 50

pad.Touched:Connect(function(hit)
if hit.Parent == player.Character then
local humanoid = hit.Parent:FindFirstChild("Humanoid")
local rootPart = hit.Parent:FindFirstChild("HumanoidRootPart")

    if humanoid and rootPart then
        local bodyVelocity = Instance.new("BodyVelocity")
        bodyVelocity.MaxForce = Vector3.new(0, math.huge, 0)
        bodyVelocity.Velocity = Vector3.new(0, jumpHeight, 0)
        bodyVelocity.Parent = rootPart
        game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
    end
end

end)

balmy anvil
#

ya sum like that

lucid bough
#

I tried that with assemblylinevelocity and you may have cooked harrdddd

#

bro Im about to kiss you

keen axle
#

me and G cooked