Universal Script 📌
335 Views
520 Executions

ball mover test for later

Universal Script 📌
Kyelisz
KyeliszPublished 10
8 months 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

sss

View Raw
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local RunService = game:GetService("RunService")

local object
local basePos
local time = 0

local amplitude = 5
local speed = 2

mouse.Button1Down:Connect(function()
    if mouse.Target and mouse.Target.Name == "Soccerg33ign3t" then
        object = mouse.Target
        basePos = object.Position
        print("Ball selected:", object:GetFullName())
    end
end)

RunService.RenderStepped:Connect(function(dt)
    if object then
        time += dt * speed
        local newY = basePos.Y + math.sin(time) * amplitude

        object.CFrame = CFrame.new(
            basePos.X,
            newY,
            basePos.Z
        )
    end
end)


Comments

2
Log in to join the conversation. Login
VanshPapa's profile picture
VanshPapa6 months ago

wdym ball mover?

1
Kyelisz's profile picture
KyeliszUploader8 months ago

its gonna work for yall its just a test for me

1

More universal scripts

See all
Universal Script 📌
3.1k
24.2k
Bumped 12 minutes ago
Script hub
6.8k
42.1k
Bumped 36 minutes ago

Script hub

TLMenu

Script hub
47
29
3 hours ago
Key System
Script hub
1.8M
460.8k
Bumped 4 hours ago
Key System

Script hub

#5 today

Verified script badgeAxonic Hub | 50+ Games Supported

Universal Script 📌
634
1.4k
Bumped 5 hours ago
Universal Script 📌
82
245
Approved 5 hours ago
Script hub
64
12
Approved 5 hours ago