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

2 comments

0

it wont let me open the video

0

hm lemme see about that