anchor whole character, and unbind all control keys (rebind them to some function, that dont move with it)
and to unfreeze him, unanchor whole character (here idk, but i think, that root part can be anchored) and unbind freezing functions
Other than anchoring the parts of the character, you can use somewhat of a disgusting workaround and set the speed of character animations to 0. Doesn’t account for other kinds of freezing though, like in terms of movement or whatever.
local playingTracks = Humanoid:GetPlayingAnimationTracks()
for _, track in ipairs(playingTracks) do
track:AdjustSpeed(0)
end
You will need to save speeds so that you can call AdjustSpeed with the same speed later. How you choose to do that is up to you, but it amounts to caching the speed then setting the speed back to the original later.
Try this, its basically anchoring all the players characters base parts in position for a set amount of time and then it unanchors them after a set amount of time. Here’s the code `
wait(10)
local Players = game:GetService(“Players”)
local cooldown = 15
local unanchor = false
local ScreenColor = game.Lighting:WaitForChild(“ColorCorrection”)
while true do
ScreenColor.Saturation = -1
ScreenColor.Contrast = 0.6
for index, player in pairs(Players:GetChildren()) do
local character = player.Character
if character then
for i,item in pairs(character:GetChildren()) do
if item:IsA(“BasePart”) then
item.Anchored = true
print(#character:GetChildren() - 1)
if #character:GetChildren() - 10 == i then
unanchor = true
end
spawn(function()
repeat wait() until unanchor
wait(8)
if unanchor then
ScreenColor.Saturation = 0
ScreenColor.Contrast = 0
item.Anchored = false
end
end)
end
end
end
end
wait(cooldown)
end