for _,v: BasePart in ipairs(char:GetDescendants()) do
if v:IsA("BasePart") then
local highlight = Instance.new("Highlight") do
highlight.Parent = v
highlight.Adornee = v
highlight.FillColor = Color3.new(0.431373, 1, 0)
highlight.OutlineTransparency = 1
end
end
end
-- Script in "ServerScriptService"
local Debris = game:GetService("Debris")
function Freeze(player)
local character = player.Character
character.PrimaryPart.Anchored = true
for _,v: BasePart in ipairs(character:GetDescendants()) do
if v:IsA("BasePart") then
local highlight = Instance.new("Highlight") do
highlight.Parent = v
highlight.Adornee = v
highlight.FillColor = Color3.new(0, 1, 1)
highlight.OutlineTransparency = 1
Debris:AddItem(highlight, 10)
end
end
end
wait(10)
character.PrimaryPart.Anchored = false
end
wait(20)
local players = game.Players:GetPlayers()
local player = game.Players:GetPlayers()[#players]
Freeze(player)
Perfect!!. Now I opened to pause the animations. Now open to pause the animations. But so far I couldn’t do it. For example I am walking and it looks like walking
-- Script in "ServerScriptService"
local Debris = game:GetService("Debris")
function Freeze(player)
local character = player.Character
local highlight = Instance.new("Highlight")
highlight.Parent = character
highlight.Adornee = character
highlight.FillColor = Color3.new(0, 1, 1)
highlight.OutlineTransparency = 1
Debris:AddItem(highlight, 10)
for i, p in pairs(character.Humanoid.Animator:GetPlayingAnimationTracks()) do
p:AdjustSpeed(0)
print(p)
end
character.PrimaryPart.Anchored = true
wait(10)
character.PrimaryPart.Anchored = false
for i, p in pairs(character.Humanoid.Animator:GetPlayingAnimationTracks()) do
p:Stop()
end
end
wait(20)
local players = game.Players:GetPlayers()
local player = game.Players:GetPlayers()[#players]
Freeze(player)
-- Script in "ServerScriptService"
local Debris = game:GetService("Debris")
local assetId = 257489726
local InsertService = game:GetService("InsertService")
local model = InsertService:LoadAsset(assetId)
model.Parent = workspace
function Freeze(player)
local character = player.Character
local highlight = Instance.new("Highlight")
highlight.Parent = character
highlight.Adornee = character
highlight.FillColor = Color3.new(0, 1, 1)
highlight.OutlineTransparency = 1
Debris:AddItem(highlight, 10)
for _,v: BasePart in ipairs(character:GetDescendants()) do
if v:IsA("BasePart") then
local pe = Instance.new("ParticleEmitter")
pe.Size = NumberSequence.new(0.5)
pe.Lifetime = NumberRange.new(1)
pe.Speed = NumberRange.new(0.1)
pe.Texture = 'rbxasset://textures/particles/sparkles_main.dds'
pe.Parent = v
Debris:AddItem(pe, 10)
end
end
for i, p in pairs(character.Humanoid.Animator:GetPlayingAnimationTracks()) do
p:AdjustSpeed(0)
print(p)
end
character.PrimaryPart.Anchored = true
wait(10)
character.PrimaryPart.Anchored = false
for i, p in pairs(character.Humanoid.Animator:GetPlayingAnimationTracks()) do
p:Stop()
end
end
wait(20)
local players = game.Players:GetPlayers()
local player = game.Players:GetPlayers()[#players]
Freeze(player)
what I’m trying to go for is a ragdoll kinda thing where when they get frozen it activates platform stand and doesnt anchor them. the animations freeze and the body parts have cancollide true but i dont know how to do make them have cancollide true.