Forja

Roblox jump pad script

A pad that throws a player into the air, in whichever direction it faces: a trampoline, a launcher across a gap, a way up to a high platform.

Where it goes

  1. 1In Roblox Studio, add a flat Part and turn on Anchored. Tilt it to launch players at an angle.
  2. 2Hover over the Part in the Explorer, press + and choose Script.
  3. 3Delete what's in the new Script, paste this in, and press Play to try it.
JumpPad · a Script in the Part
-- From forja.us/tools/roblox-scripts/jump-pad-- Launches players the way this pad's top is facing.local Players = game:GetService("Players")local LAUNCH_SPEED = 120local pad = script.Parentlocal launched = {}pad.Touched:Connect(function(hit)	local character = hit:FindFirstAncestorOfClass("Model")	local player = character and Players:GetPlayerFromCharacter(character)	local root = character and character:FindFirstChild("HumanoidRootPart")	if not player or not root or launched[player] then		return	end	launched[player] = true	local attachment = Instance.new("Attachment")	attachment.Parent = root	local push = Instance.new("LinearVelocity")	push.Attachment0 = attachment	push.MaxForce = math.huge	push.RelativeTo = Enum.ActuatorRelativeTo.World	push.VectorVelocity = pad.CFrame.UpVector * LAUNCH_SPEED	push.Parent = attachment	task.wait(0.15)	attachment:Destroy()	task.wait(0.5)	launched[player] = nilend)

How it works

  • LinearVelocity pushes the character for a moment. A player's device runs their character's physics, so this works where setting the speed from the server often doesn't.
  • pad.CFrame.UpVector is the way the pad's top faces, so tilting the pad aims the launch.
  • launched stops one jump from firing many times while the player stands on it.

Make it yours

Launch higher
Raise LAUNCH_SPEED. Try 80 for a hop and 200 for a long way.
Want something more? The script generator can write it: “A pad that launches players forward and up, with a sound and a puff of smoke”

Maps to try it on: low poly maps

Start from a finished map, and your scripts have a game to run in.

More free Roblox scripts