uh i guess i need to give the full script ;-;
local walk = script.Parent.Humanoid:LoadAnimation(script.Walking)
local throw = script.Parent.Humanoid:LoadAnimation(script.Throw)
local head = script.Parent.Head
local torso = script.Parent.Torso
local hrp = script.Parent.HumanoidRootPart
local tla =script.Parent.TopLeftArm
local tll = script.Parent.TopLeftLeg
local mla = script.Parent.MidLeftArm
local mll = script.Parent.MidLeftLeg
local bla = script.Parent.BotLeftArm
local bll = script.Parent.BotLeftLeg
local tra = script.Parent.TopRightArm
local trl = script.Parent.TopRightLeg
local mra = script.Parent.MidRightArm
local mrl = script.Parent.MidRightLeg
local bra = script.Parent.BotRightArm
local brl = script.Parent.BotRightLeg
wait(0.001)
walk:Play()
while true do
wait(10)
local e = Instance.new("Part",workspace)
e.Shape = "Ball"
e.Material = "Neon"
e.Size = Vector3.new(18.93, 18.93, 18.93)
e.BrickColor = BrickColor.new("Really red")
e.CFrame = tla.CFrame
local f = Instance.new("Part",workspace)
f.Shape = "Ball"
f.Material = "Neon"
f.Size = Vector3.new(18.93, 18.93, 18.93)
f.BrickColor = BrickColor.new("Really red")
f.CFrame = tra.CFrame
wait(0.0001)
local eweld = Instance.new("Motor6D",e)
eweld.Part0 = e
eweld.Part1 = tla
local fweld = Instance.new("Motor6D")
fweld.Part0 = f
fweld.Part1 = tra
wait(0.0001)
throw:Play()
wait(0.5)
eweld:Destroy()
fweld:Destroy()
e.Touched:Connect(function(p)
if p.Parent:FindFirstChild("Humanoid") then
p.Parent.Humanoid.Health = p.Parent.Humanoid.Health -10
e:Destroy()
end
end)
f.Touched:Connect(function(p)
if p.Parent:FindFirstChild("Humanoid") then
p.Parent.Humanoid.Health = p.Parent.Humanoid.Health -10
f:Destroy()
end
end)
end
`script.Parent.Humanoid.Died:Connect(function()
head:Destroy()
torso:Destroy()
hrp:Destroy()
tla:Destroy()
tra:Destroy()
tll:Destroy()
trl:Destroy()
mla:Destroy()
mra:Destroy()
mll:Destroy()
mrl:Destroy()
bla:Destroy()
bra:Destroy()
bll:Destroy()
bll:Destroy()
end)
from line 61 to line 76 is the problem.
`
8 comments
^ Also supposedly, you don't REALLY need UnionOperations and MeshParts unless you're doing R15 or the NPC has some sort of morph.
ok i guess i was not clear enuf
uh sorry i tried it i was not working
Is the script located inside the NPC? And is the Humanoid located also inside the NPC within' the same Parent?
remove
or v:IsA('MeshPart') or v:IsA('UnionOperation')because BasePart checks all of those^ Fair enough. I had no idea it did.
yes it is located inside the NPC and the humanoid too. The script is not working.
apparently my problems is custom models dont work for me hah anyways thats a nice way to delete body parts thanks!