
13.8k Views
3 Executions
TestCCSASA
Universal Script 📌
Imhavk8Published 5
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Test script
Updates
Script edited: Create script
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
0Log in to join the conversation. Login
No comments yet. Be the first!







