Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why does my npc die instantly when i destroy the shield?

Asked by 2 years ago
Edited 2 years ago
local chAr = script.Parent
local Shield = script.Parent.Shield
chAr.Humanoid.DisplayDistanceType = ("None")

Shield.Shield.Died:Connect(function()
    Shield:Destroy()
    chAr.Humanoid.MaxHealth = 1000
    chAr.Humanoid.Health = 1000
    chAr.Humanoid.DisplayDistanceType = ("Viewer")
end)

i'm having another problem again i'm trying to create an npc that requires it's shield to be destroyed before it can take any damage as the script should set it's health to a certain amount but instead when i kill the shield the npc straight up dies how do i fix this? https://gyazo.com/40a0ec5943aa894177784b51d0a372d6 the shield is a model inside a model

0
it wont let me open the video sne_123456 439 — 2y
0
hm lemme see about that dylancrazy88 20 — 2y

Answer this question