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

why is this script making npcs not fall apart when they get killed by it?

Asked by 2 years ago

Touch = Snowflake.Touched:Connect(function(hit) if not hit or not hit.Parent then return end local Hum = hit.Parent:FindFirstChildOfClass("Humanoid") local FF = hit.Parent:FindFirstChildOfClass("ForceField") local IsPlayer = game.Players:GetPlayerFromCharacter(victim_of_the_attack) if IsPlayer then return
end if FF or not Hum or Hum.Health <= 0 or IsTeamMate(Creator.Value,Services.Players:GetPlayerFromCharacter(Hum.Parent)) or Creator.Value == Services.Players:GetPlayerFromCharacter(Hum.Parent) then return end Touch:Disconnect();Touch = nil UntagHumanoid(Hum) TagHumanoid(Hum) Hum:TakeDamage(270) local function Frozen(Character) -- Quick check to see if they're not frozen for _,v in pairs(Services.ServerScriptService:GetChildren()) do if v:IsA("Script") and v.Name == "Freeze" and v:FindFirstChild("Target") and v:FindFirstChild("Target").Value == Hum.Parent then return true end end return false this is a staff of neverending frost snowflake script and i tried to make it so it doesn't hurt players after taking a script that someone suggested and now when npcs die it stands still how do i fix this?

0
man use code block :( acediamondn123 147 — 2y
0
i don't know how to so no dylancrazy88 20 — 2y

Answer this question