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

Can anyone help with this script? (Team Change "Access")

Asked by 10 years ago

I have this script here, it works, but I want to somehow make another script, or add to this, that makes it so if anyone were to team themselves with admin, it kicks them from the server because they don't have "access."

local rs = Game:GetService("ReplicatedStorage"):WaitForChild("Respawn")
local deb = false

script.Parent.MouseButton1Click:connect(function()
    if deb then 
        return 
    end
    deb = true
    local p = game.Players.LocalPlayer
    if p.Name == "Exbryst" then
        p.TeamColor = BrickColor.new("Cyan")
        wait()
        rs:FireServer()
    end
end)

Answer this question