Command message
game.Players.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(GROUPID) >= NUMBER then
player.Chatted:Connect(function(message)
local split = message:split(" ")
if split[1] == ":kill" then
local name = split[2]
local playerName = game.Players:FindFirstChild(name)
if playerName then
playerName.Character.Humanoid.Health = 0
else
warn(name.." isn't in the game!")
end
end
end)
end
end)
game.Players.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(GROUPID) >= NUMBER then
player.Chatted:Connect(function(message)
local split = message:split(" ")
local name = split[2]
local playerName = game.Players:FindFirstChild(name)
if split[1] == ":ff" then
local ff = Instance.new("ForceField")
if playerName then
ff.Parent = playerName.Character
else
warn(name.." isn't in the game!")
ff:Destroy()
end
elseif split[1] == ":unff" then
if playerName then
local ff = playerName.Character.ForceField
if ff then
ff:Destroy()
else
return error("No FF")
end
else
warn("No player")
end
end
end)
end
end)
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
local split = message:split(" ")
if split[1] == ":tp" then
local name = split[2]
local playerName = game.Players:FindFirstChild(name)
if playerName then
player.Character.HumanoidRootPart.CFrame = playerName.Character.HumanoidRootPart.CFrame
end
end
end)
end)