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?