Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Issue with ApplyImpulse? (applyimpulse not working at all)

Asked by 2 years ago

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)
0
Does it still not work if the impulse is very high? For example 100,000? radiant_Light203 1166 — 2y
0
no Philipceo90 18 — 2y
0
I have an answer, let me work on it. Xyternal 247 — 2y

1 answer

Log in to vote
0
Answered by
Xyternal 247 Moderation Voter
2 years ago

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)

Ad

Answer this question