TestCCSASA
Key RequiredUniversal

TestCCSASA

Universal ScriptImhavk8Imhavk8 13.8K views 3 executesUpdated Nov 15, 2024
Unrated
00
Lua Script•63 lines (2352 chars)
local player = game.Players.LocalPlayer
local userInputService = game:GetService("UserInputService")
local replicatedStorage = game:GetService("ReplicatedStorage")

local function createMenu()
    local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
    local menuFrame = Instance.new("Frame", screenGui)
    menuFrame.Size = UDim2.new(0.3, 0, 0.5, 0)
    menuFrame.Position = UDim2.new(0.35, 0, 0.25, 0)
    menuFrame.BackgroundColor3 = Color3.new(0, 0, 0)
    menuFrame.BackgroundTransparency = 0.5

    local function createButton(name, position, callback)
        local button = Instance.new("TextButton", menuFrame)
        button.Size = UDim2.new(1, 0, 0.1, 0)
        button.Position = position
        button.Text = name
        button.BackgroundColor3 = Color3.new(1, 1, 1)
        button.MouseButton1Click:Connect(callback)
    end

    local flying = false
    local function fly()
        flying = not flying
        if flying then
            local bodyVelocity = Instance.new("BodyVelocity", player.Character.HumanoidRootPart)
            bodyVelocity.Velocity = Vector3.new(0, 50, 0)
            bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000)
            while flying do
                wait()
                bodyVelocity.Velocity = Vector3.new(userInputService:GetMouse().Direction.X * 50, 50, userInputService:GetMouse().Direction.Z * 50)
            end
            bodyVelocity:Destroy()
        end
    end

    createButton("Fly", UDim2.new(0, 0, 0, 0), fly)

    createButton("Ban", UDim2.new(0, 0, 0.1, 0), function()
        local targetPlayer = game.Players:FindFirstChild("TargetPlayerName") -- Replace with actual target logic
        if targetPlayer then
            targetPlayer:Kick("You have been banned.")
        end
    end)

    createButton("Ban All", UDim2.new(0, 0, 0.2, 0), function()
        for _, targetPlayer in pairs(game.Players:GetPlayers()) do
            if targetPlayer ~= player then
                targetPlayer:Kick("You have been banned.")
            end
        end
    end)

    createButton("Kick All", UDim2.new(0, 0, 0.3, 0), function()
        for _, targetPlayer in pairs(game.Players:GetPlayers()) do
            if targetPlayer ~= player then
                targetPlayer:Kick("You have been kicked.")
            end
        end
    end)
end

createMenu()

Features & Information

Test script

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts