So the problem that I am facing is that I can’t one shot a dummy when I deal 100 or more damage. However, I can kill the dummy if I two shot him for example:99dmg + 99dmg and I want the dummy to be anchored.
The solution that I have tried is to put a part into the dummy and anchor it. However, it didn’t work I also did tried to weld it to a leg and it failed also.
Here is my script:
local humanoid = script.Parent:WaitForChild("Humanoid")
humanoid.Died:Connect(function()
script.Parent:Destroy()
end)
local FolderWithShoots = workspace.Shoots
local Human = script.Parent.Humanoid
Human.Changed:Connect(function()
if Human.Health == 0 then
for _,v in pairs(FolderWithShoots:GetChildren()) do
if v:IsA('BasePart') then
if v:FindFirstChildOfClass('Script') then
v:FindFirstChildOfClass('Script').Enabled = false
end
v.CanCollide = false
v.Transparency = 1
end
end
end
end)
the humanoid gets destroyed before that event can fire i think. so i believe you can just add that script’s code to the script i originally helped you with.
It works however, now If the damage is slightly changed it will destroy the whole folder for example if I only deal 25 dmg. By the way thanks for the help!