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?
You aren't advanced if you don't know string.sub.
Just anchor a character's torso.
Kohl's Admin Command's :Freeze me Script:
01 | if msg:lower():sub( 1 , 7 ) = = "freeze " then |
02 | local plrz = GetPlr(plr, msg:lower():sub( 8 )) |
03 | for i, v in pairs (plrz) do |
04 | coroutine.resume(coroutine.create( function () |
05 | if v and v.Character and v.Character:findFirstChild( "Humanoid" ) then |
06 | for a, obj in pairs (v.Character:children()) do |
07 | if obj:IsA( "BasePart" ) then obj.Anchored = true end v.Character.Humanoid.WalkSpeed = 0 |
08 | end |
09 | end |
10 | end )) |
11 | end |
12 | end |
This is how kohl's admin script works, (note: copying this script will not work)