Throw a basketball by ScriptDude999
Key RequiredUniversal

Throw a basketball by ScriptDude999

Universal ScriptScriptdude999Scriptdude999 1K views 20 executesUpdated Nov 21, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•75 lines (2512 chars)
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoPowerGUI"
screenGui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 200, 0, 150)
frame.Position = UDim2.new(0, 50, 0, 50)
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
frame.Parent = screenGui
frame.Active = true
frame.Draggable = true

local autoPowerButton = Instance.new("TextButton")
autoPowerButton.Size = UDim2.new(0, 180, 0, 50)
autoPowerButton.Position = UDim2.new(0, 10, 0, 10)
autoPowerButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
autoPowerButton.TextColor3 = Color3.new(1, 1, 1)
autoPowerButton.Text = "Auto Power: OFF"
autoPowerButton.Parent = frame

local autoWinButton = Instance.new("TextButton")
autoWinButton.Size = UDim2.new(0, 180, 0, 50)
autoWinButton.Position = UDim2.new(0, 10, 0, 70)
autoWinButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
autoWinButton.TextColor3 = Color3.new(1, 1, 1)
autoWinButton.Text = "Auto Win: OFF"
autoWinButton.Parent = frame

local autoPower = false
local autoWin = false

autoPowerButton.MouseButton1Click:Connect(function()
    autoPower = not autoPower
    autoPowerButton.Text = "Auto Power: " .. (autoPower and "ON" or "OFF")
end)

autoWinButton.MouseButton1Click:Connect(function()
    autoWin = not autoWin
    autoWinButton.Text = "Auto Win: " .. (autoWin and "ON" or "OFF")
end)

local requestEvent = ReplicatedStorage:WaitForChild("Events"):WaitForChild("RequestServerAction")
local invokeEvent = ReplicatedStorage:WaitForChild("Events"):WaitForChild("InvokeServerAction")

local powerArgs = {"Gameplay", "Train", {1, 1}}
local winArgs = {"Gameplay", "Win", 1}

RunService.RenderStepped:Connect(function()
    if autoPower then
        requestEvent:FireServer(unpack(powerArgs))
    end
    if autoWin then
        invokeEvent:InvokeServer(unpack(winArgs))
    end
end)

-- Notification popup
local notification = Instance.new("TextLabel")
notification.Size = UDim2.new(0, 300, 0, 50)
notification.Position = UDim2.new(0.5, -150, 0, 20)
notification.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
notification.TextColor3 = Color3.new(0, 0, 0)
notification.Text = "Made by ScriptDude999 for subscribers"
notification.TextScaled = true
notification.Parent = screenGui

delay(5, function()
    notification:Destroy()
end)

Features & Information

Auto Power and auto win

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts