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? :<
#Jumppad
1 messages · Page 1 of 1 (latest)
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)
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)
How I tackled this problem (probably not the best) was by changing the jump height/power of the player then adding a delay to reset the player’s jump height/power
u dont have to add a body velocity
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)

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)
I will look at this later
thanku
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
Man
I honestly think the problem is your fps
It makes it look like there's a delay
roblox physics are bad
Or you can try using applyforce instead of bodyvelocity
I tried making a new experience too
still nothing
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
is this like asm linear velocity?
you'd have to do some math to find the necessary force to lift the character to the desired height
but its really easy
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?
I mean
the other guy did it perfectly :<
so there IS a way do to it
i wonder how
magician fr
nothing happens😔
Alright
make sure the script you add is local
therefore the players bounce will be local
thus faster physics
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)
ya sum like that
hold onnnnnnnnnnnn
I tried that with assemblylinevelocity and you may have cooked harrdddd
bro Im about to kiss you
me and G cooked