Universal Script 📌
350 Views
29 Executions

677777

Universal Script 📌
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

d

View Raw
local Admins = {  -- Add your Roblox username here
    "YourUsernameHere"
}

-- Check if player is admin
local function isAdmin(player)
    for _, name in ipairs(Admins) do
        if player.Name == name then
            return true
        end
    end
    return false
end

game.Players.PlayerAdded:Connect(function(player)
    player.Chatted:Connect(function(msg)
        if not isAdmin(player) then return end

        local split = msg:split(" ")
        local cmd = split[1]

        -- !kick PlayerName
        if cmd == "!kick" and split[2] then
            local target = game.Players:FindFirstChild(split[2])
            if target then
                target:Kick("You were kicked by an admin.")
            end
        end
        
        -- !kill PlayerName
        if cmd == "!kill" and split[2] then
            local target = game.Players:FindFirstChild(split[2])
            if target and target.Character then
                target.Character:BreakJoints()
            end
        end

        -- !tp Player1 Player2
        if cmd == "!tp" and split[2] and split[3] then
            local p1 = game.Players:FindFirstChild(split[2])


Comments

1
Log in to join the conversation. Login
bluududscomingforu's profile picture
bluududscomingforuUploader11 months ago

I wanted my script to look ai lol

1

More universal scripts

See all
Script hub
50.7k
320.1k
Bumped 1 hour ago

Script hub

Nameless Admin

Script hub
176.7k
1.6M
Bumped 3 hours ago
Key System
Script hub
46.6k
11.5k
Bumped 5 hours ago
Key System
Paid
Script hub
2.5M
798.8k
Bumped 6 hours ago
Key System

Script hub

#6 today

Verified script badgeLumin Hub | #1 | Insta Steal