I am trying to make a bounce pad but when touching the part it doesn't do anything
local db = false script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and db == false then db = true hit:ApplyImpulse(Vector3.new(0, hit:GetMass() * 2500, 0)) wait(0.5) db = false end end)
So I was thinking, why you were using ApplyImpulse
when making a bounce pad. If you were doing that for trial purposes, then sorry, but this answer won't help. But if you will do anything to make a bounce pad, then take this code.
local db = true if db then db = false script.Parent.Touched:connect(function(hit) hit.Parent.HumanoidRootPart.Velocity = Vector3.new(0,100,0) wait(5) db = true end)