Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you freeze the players character?

Asked by
Mr1Vgy 30
10 years ago

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

Log in to vote
0
Answered by 10 years ago

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

Just anchor a character's torso.

0
I do know string.sub(), and thanks! Mr1Vgy 30 — 10y
Ad
Log in to vote
0
Answered by
Asleum 135
10 years ago

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

Log in to vote
0
Answered by 10 years ago

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)

Answer this question