local E={Id="\083\116\117\110",Aliases={"\112\108\097\116\102\111\114\109\115\116\097\110\100"};Description="\083\116\117\110\115 \112\108\097\121\101\114\115 \098\121 \115\101\116\116\105\110\103 \080\108\097\116\102\111\114\109\083\116\097\110\100 \111\110 \116\104\101\105\114 \104\117\109\097\110\111\105\100\115 \116\111 \116\114\117\101\046";Args={{Type="\112\108\097\121\101\114\115";Name="\080\108\097\121\101\114\115",Description="\084\104\101 \112\108\097\121\101\114\115 \116\111 \115\116\117\110"}}}function E.RunServer(E,Y)for E,Y in pairs(Y)do local O=Y.Character if O then local E=O:FindFirstChildOfClass("\072\117\109\097\110\111\105\100")if E then E.PlatformStand=true end end end return("\083\116\117\110\110\101\100 \037\100 \112\108\097\121\101\114\040\115\041\046"):format(#Y)end return E
local StunCommand = {
	Id = "Stun",
	Aliases = { "platformstand" },
	Description = "Stuns players by setting PlatformStand on their humanoids to true.",
	Args = {
		{
			Type = "players",
			Name = "Players",
			Description = "The players to stun"
		}
	}
}

function StunCommand.RunServer(_, players)
	for _, player in pairs(players) do
		local character = player.Character
		if character then
			local humanoid = character:FindFirstChildOfClass("Humanoid")
			if humanoid then
				humanoid.PlatformStand = true
			end
		end
	end

	return ("Stunned %d player(s)."):format(#players)
end

return StunCommand