0 views0 copies0 likes

Spring Jump Pad with Per-Player Cooldown

Universal script

Copy it, then test it in your own Studio place.

Combat & movement Verified

Script code

15 lines ยท 0.6 KB
Download
local Players = game:GetService("Players")local pad = workspace:WaitForChild("SpringPad")local last = {}local LAUNCH = 58pad.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 then return end	local now = os.clock()	if last[player] and now - last[player] < 0.8 then return end	last[player] = now	root:ApplyImpulse(Vector3.new(0, root.AssemblyMass * LAUNCH, 0))end)-- โ€ฆopen Get script for the full source

About this script

Place an anchored SpringPad in Workspace under a landing area. Contact with a character adds an upward impulse scaled to their assembly mass, producing a consistent boost for avatars of different sizes. The short per-player cooldown prevents one jump from stacking because multiple body parts touch the pad. Adjust LAUNCH for your level and test how ceiling height affects the landing.

Comments

Share what works, ask questions, or report an issue.

0

Log in to leave a comment.

No comments yet

Be the first to share your thoughts!

Raw Luau source

local Players = game:GetService("Players")
local pad = workspace:WaitForChild("SpringPad")
local last = {}
local LAUNCH = 58
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 then return end
	local now = os.clock()
	if last[player] and now - last[player] < 0.8 then return end
	last[player] = now
	root:ApplyImpulse(Vector3.new(0, root.AssemblyMass * LAUNCH, 0))
end)
Players.PlayerRemoving:Connect(function(player) last[player] = nil end)