Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you freeze the players character?

I am a pretty advanced scripter, and I don't know how to freeze the character, like in kohl's admin commands when they say :Freeze me, how is that scripted?

3 answers

You aren't advanced if you don't know string.sub.

Just anchor a character's torso.

1 comment

0

I do know string.sub(), and thanks!

Or you can just set the character's WalkSpeed to 0.

Kohl's Admin Command's :Freeze me Script:

if msg:lower():sub(1,7) == "freeze " then
local plrz = GetPlr(plr, msg:lower():sub(8))
for i, v in pairs(plrz) do
coroutine.resume(coroutine.create(function()
if v and v.Character and v.Character:findFirstChild("Humanoid") then 
for a, obj in pairs(v.Character:children()) do 
if obj:IsA("BasePart") then obj.Anchored = true end v.Character.Humanoid.WalkSpeed = 0
end
end
end))
end
end

This is how kohl's admin script works, (note: copying this script will not work)

This discussion is preserved as it was. New answers, comments, and votes are closed.