Ooh that could be it, i think the rocket launcher and the gun uses the second method
Ok well try the Default sword from roblox, and tell me what happens
still nothing, i’m super lost right now
I can Change the script so that it works with the second method
yeah, could you try that? I think that would work
Here this, try it
local Humanoid = script.Parent
local Npc = Humanoid.Parent
Humanoid.HealthChanged:Connect(function()
if Humanoid.Health <= 0 then
Npc:Destroy() print(Npc.Name.." Has Died")
end
end)
You could even make it in a while true do loop, if the connect(function() isn’t working
still nothing, do you want the gun to try and figure out why?
Yes, please i need to see what the problem is, you could even send me a download to the world to see even better whats goin on
Search up gun in the toolbox and insert this, then ungroup it and delete the base
Huh the gun doesn’t work but my sword does?, what sword did you use?
same one you said, the roblox sword from the toolbox
local npc = --path to your npc here
npc.Died:Connect(function()
script:Destroy()
end)
This sword?..
yep, exact one made by Roblox and named “Sword”
Ya thats what i have
Can you send me a download link of the world you have?
it does not, i’m pretty sure the humanoid health is going into the negatives
Lua, wouldn’t that just delete the script and not the model of the character
I’m going to send you a world I made so you can download it and test what the differences are okay?