Universal Script 📌
13.8k Views
3 Executions

TestCCSASA

Universal Script 📌
Imhavk8
Imhavk8Published 5
2 years 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

Test script

Updates

  1. Script edited: Create script

View Raw
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


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
3.2M
753.1k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
400
1.1k
Bumped 4 hours ago
Key System
Universal Script 📌
7.1k
141.6k
Bumped 5 hours ago
Script hub
45.7k
114.4k
Bumped 7 hours ago
Key System
Script hub
3.5M
448.8k
Bumped 7 hours ago
Key System

Script hub

Hall of Fame #4

Verified script badgeOverflow #1 *OP*

Universal Script 📌
14.9k
71.8k
Bumped 8 hours ago