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

Fix This Admin Script That Me and Duckwit made?

Asked by 10 years ago

`~~~~~~~~~~~~~~~~~

local admins = {"jblade73"}

Players = Game:GetService("Players") Backpack = Game:GetService("StarterPack")

function onChatted(player,message) if string.sub(message,1,1) == ":" then --This checks for the : at the beginning command = string.sub(message,2) if command == "kill all" then for _,v in pairs(Players:GetChildren()) do v.Character:BreakJoints() end elseif command == "NoTorso all" then for _,v in pairs (Players:Getchildren()) do v.Character.Torso.Transparency = 1 end end end end

game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) onChatted(player, message) end) end)

The Torso part isnt working - the kill all one is ~~~~~~~~~~~~~~~~~ `

Answer this question