Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Issue with ApplyImpulse? (applyimpulse not working at all)

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)

3 comments

0

Does it still not work if the impulse is very high? For example 100,000?

0

no

0

I have an answer, let me work on it.

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.