Surprise Me!

How to create a super jump pad in roblox studio

2024-09-21 8 Dailymotion

Super jump pad, #roblox #jumppad #scripting #robloxstudio <br /> <br /> Try my first game:https://www.roblox.com/games/14828063...<br /><br /><br />_____________Jump Pad Script_______________<br /><br />local pad = script.Parent -- Assuming the script is placed inside the pad part<br /><br />local direction = Vector3.new(1, 0, 0) -- Adjust the horizontal direction vector here<br />local verticalDirection = Vector3.new(0, 1, 0) -- Adjust the vertical direction vector here<br /><br />local function onTouched(hit)<br /> local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")<br /><br /> if humanoid then<br /> local bodyVelocity = Instance.new("BodyVelocity")<br /> local speed = 100 -- Adjust the speed here<br /> local verticalSpeed = 100 -- Adjust the vertical speed here<br /><br /> local velocity = (direction.Unit * speed) + (verticalDirection.Unit * verticalSpeed)<br /><br /> bodyVelocity.Velocity = velocity<br /> bodyVelocity.P = math.huge<br /> bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)<br /> bodyVelocity.Parent = humanoid.RootPart<br /><br /> -- Remove BodyVelocity after a certain duration (e.g., 2 seconds)<br /> wait(2)<br /> bodyVelocity:Destroy()<br /> end<br />end<br /><br />pad.Touched:Connect(onTouched)<br /><br /><br />________Jump Pad Sound Script_____________<br /><br /><br />local part = script.Parent<br /><br />part.Touched:Connect(function(Hit)<br /> if Hit.Parent:FindFirstChild("Humanoid") ~= nil then<br /> local sound = script.Parent["sound"]<br /> <br /> if not sound.IsPlaying then<br /> sound:Play()<br /> end<br /> end<br />end)<br /><br /><br /><br />#roblox #robloxstudio #robloxgames #jumppad #superjumppad #gamedevelopment #scripting<br />#robloxtutorials #robloxutorial

Buy Now on CodeCanyon