Bombs don't work as they should

When this script is activated, the bomb is detonated as soon as it is thrown.

i for 3 hours
I tried to solve the problem, but I went crazy.

Someone please help me…

This script is in the starter pack

function onRemote(player, func, ...)
	function getPlayer()
		return game:GetService("Players"):GetPlayerFromCharacter(player.Character)
	end
	if player ~= getPlayer() then return end
	if func == "LeftDown" then
		onLeftDown(...)
	end
end

touched = bomb.Touched:connect(function(part)
if part:IsDescendantOf(Tool.Parent) then return end
	if contains(Knives, part) then return end
	if part.Parent.Name ~= getPlayer().Character.Name then
         -- This is where the various effects are written.
        end   
end
end)

1 Like

Hey there!
Would be happy to help you but this script doesn’t gives a lot of informations.

Could you please provide more details about the non-working script ?

Thanks