Hi. I'm trying to make a script that launches you in the air and this one works perfectly fine in a local test but not with filtering enabled. The script... well... "works?" It runs completely through and kinda launches you up but barely and makes you glitch a little up. This is contrary to with filtering enabled disabled where it launches you high up, working as intended. Thanks for any help!
power = "150"
cooldown = "0.5"
local debounce = false
function onTouched(part)
if debounce == false then
debounce = true
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
h.Parent.Torso.Velocity=Vector3.new(0,power,0)
script.Parent.ParticleEmitter:Emit(10)
script.Parent.Sound:Play()
wait(cooldown)
debounce = false
end
end
end
end
script.Parent.Touched:connect(onTouched)

3 comments
I don't understand your question... Does it work with filtering enabled or not?
:connect is deprecated use :Connect
it does work, although you don't get flung.