Script spawns bomb for a 0.25 seconds (roughly) when it should spawn for much longer

local Projectile = script.Projectile
local ProxProm = script.Parent.ProximityPrompt
local VehicleSeat = script.Parent.Parent.VehicleSeat

ProxProm.Triggered:Connect(function(plr)
	if VehicleSeat.Occupant ~= nil and VehicleSeat.F.Force == Vector3.new(0,0,0) then
		local c = Projectile:Clone()
		c.Name = "Bomb"
		c.Parent = workspace
		c.Velocity = c.CFrame.LookVector * 100
		print("DO SOMETHING")
	end
end)

so this script on top prints DO SOMETHING and spawns the part but just for 0.1 or 0.25 seconds idk why can someone tell me why?

Maybe the bomb has CanCollide Set to false

yea it does actually so that it can obviously go through parts

by setting CanCollide to false the bomb will not collide with the ground and will fall to the “void” resulting the bomb to be destroyed

but the void is F A R from the ground which is a big water ocean

Still it would fall and get destroyed.

If you want the bomb to collide with the ground and not the other parts you should use Collision Filtering instead.

ok it work thank u so much! :smiley:

1 Like