this is a script for a bomb power in my game but every time when I press the button to blow it up it only hits one person.
WHY!?
HOW Do I make it hit Any one who touches it onece? not just one person when everyone gets hit by the blast!?
local Remote = game.ReplicatedStorage.BombFruitRemotes.Move1Event
local hithum = false
local died = false
Remote.OnServerEvent:Connect(function(plr)
local char = plr.Character or plr.CharacterAdded:wait()
local hum = char.Humanoid
local explodeclone = game.ReplicatedStorage.Explopart:Clone()
explodeclone.Parent = game.Workspace
explodeclone.CFrame = char.HumanoidRootPart.CFrame
explodeclone.Touched:Connect(function(hit)
local ehum = hit and hit.Parent:FindFirstChild("Humanoid")
if ehum and ehum ~= hum then
if hithum == false then
hithum = true
ehum:TakeDamage(20)
print(hit.Parent.Name)
end
end
end)
for i = 1,20 do
wait()
explodeclone.Size = explodeclone.Size + Vector3.new(4,4,4)
end
wait(.5)
explodeclone:Destroy()
end)
--hum.Died:Connect(function()
-- died = true
--end)
---/Script by Tizzel40/---/Bomb Move 1 (I)

1 comment
u mispelled once to onece