I’m trying to script a decently high quality jump pad. However, it doesn’t make the player go up at all. Everything in the script works perfectly except for the line that makes the player go up. Nothing in the dev console, and no overriding scripts.
local me = script.Parent
local service = game:GetService("TweenService")
local debounce = false
local beep = me["500 Hz Beep / Error Sound (Loopable)"]
local function chime(note1, note2, note3)
beep:Play()
beep.PlaybackSpeed = note1
task.wait(0.1)
beep.PlaybackSpeed = note2
task.wait(0.1)
beep.PlaybackSpeed = note3
task.wait(0.1)
beep:Stop()
end
me.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum:IsA("Humanoid") then
if debounce == false then
debounce = true
local hrp = hum.RootPart
hrp.AssemblyLinearVelocity = hrp.CFrame.UpVector * 50
me.Dash:Play()
me.Color = Color3.new(1,0,0)
local tween = service:Create(me, TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {Position = me.Position + Vector3.new(0,0.5,0)})
tween:Play()
task.wait(3)
tween = service:Create(me, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = me.Position + Vector3.new(0,-0.5,0)})
tween:Play()
me["Steam Piston Pump 32 (SFX)"]:Play()
tween.Completed:Wait()
chime(0.31, 1, 1.65)
me.Color = Color3.new(1,1,0)
debounce = false
end
end
end
end)