Here's the hard way:
for _,v in ipairs(game.Players:GetPlayers()) do
local char = v.Character
if char:FindFirstChild("Humanoid") then
char.Humanoid.WalkSpeed = 0
end
for _,v in ipairs(char:GetChildren()) do
if v:IsA('BasePart') then
v.Transparency = 1
elseif v.Name == "Shirt" or v.Name == "Pants" then
v:Destroy()
elseif v:IsA('Hat') then
v:Destroy()
end
end
end
-- this will remove everything of them, except their face (try that later)
Here is an alternative:
for _,v in ipairs(game.Players:GetChildren()) do
local char = v.Character
if char and char:FindFirstChild("Humanoid") then
char.Humanoid:Destroy()
wait(a certain amount)
end
local hum = Instance.new("Humanoid", char)
end
end
-- replace "a certain amount" with whatever time the cutscene or whatever is. This will remove their humanoid so they don't respawn and they lose control of their character.
|