if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" and v:FindFirstChildOfClass("Humanoid") then

v:BreakJoints()

body[part].Material = "Ice"

body[part].BrickColor = BRICKC("Medium blue")

body[part].Anchored = true

end

end

end

end

function Petrify(Foe)

local STONEMODEL = IT("Model", Effects)

local CHILDREN = Foe:GetDescendants()

for index, CHILD in pairs(CHILDREN) do

if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then

CHILD.Parent = STONEMODEL

CHILD.Material = "Slate"

CHILD.Color = C3(0 , 0, 0)

MagicSphere(VT(0,0,0),45,CHILD.CFrame,C3(1,0,0),VT(0.2,0.2,0.2))

if CHILD:FindFirstChildOfClass("SpecialMesh") then

local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")

mesh.TextureId = ""

end

if CHILD:FindFirstChildOfClass("Decal") then

local mesh = CHILD:FindFirstChildOfClass("Decal")

mesh:remove()

end

if CHILD.ClassName == "MeshPart" then

CHILD.TextureID = ""

end

if CHILD.ClassName == "UnionOperation" then

CHILD.UsePartColor = true

end

CHILD.CanCollide = true

end

end

Debris:AddItem(STONEMODEL, 5)

end

function ApplyAoE(POSITION,RANGE,BRUTAL,ICE)

local CHILDREN = workspace:GetDescendants()

for index, CHILD in pairs(CHILDREN) do

if CHILD.ClassName == "Model" and CHILD ~= Character then

local HUM = CHILD:FindFirstChildOfClass("Humanoid")

if HUM then

local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")