I decided to make a barrel that makes you fly away when you touch it at the right speed. *It is in a Regular script. *The error is "Script:4: attempt to compare userdata with number" This is the script:
local Barrel = script.Parent.Union
function Explode(Part)
if Part.Velocity <= 1 then
local expl = Instance.new("Explosion")
expl.BlastPressure = 99999999
expl.BlastRadius = 100
expl.DestroyJointRadiusPercent = 0
end
end
Barrel.Touched:connect(Explode)

1 comment
Accidentally put in the wrong speed. It is suppost to be 16