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)