
3.2k Views
332 Executions
Fun client side ball script [MOBILE SUPPORTED]
Universal Script π
*108192First script
1 year 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
A client-side script that allows you to spawn as many tiny balls you want & delete all or a certain amount. Mobile supported. And also it allows you to do fun things with the balls (eg, orbiting you, bouncing etc).
-- LocalScript in StarterPlayerScripts
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Debris = game:GetService("Debris")
local player = Players.LocalPlayer
local spawnedBalls = {}
local grabbableMode = false
local grabbedBall = nil
local grabOffset = Vector3.new()
local activeFunConnection
-- Helper functions
local function getCharacter()
return player.Character or player.CharacterAdded:Wait()
end
local function getHRP()
return getCharacter():WaitForChild("HumanoidRootPart")
end
local function updateLabel(label)
label.Text = "Spawned balls: "..#spawnedBalls
end
-- UI Setup
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "BallManagerUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")
local function makeDraggable(frame)
local dragging, dragInput, dragStart, startPos
frame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = frame.Position









Can you make them kick able so i can play football with myself