local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = [Link]
-- Wait for PlayerGui
local playerGui = player:WaitForChild("PlayerGui")
-- GUI setup
local gui = [Link]("ScreenGui")
[Link] = false
[Link] = "FlingGui"
[Link] = playerGui
local timerLabel = [Link]("TextLabel")
[Link] = [Link](0, 200, 0, 50)
[Link] = [Link](0, 20, 0, 20)
[Link] = true
timerLabel.BackgroundColor3 = [Link](0,0,0)
timerLabel.TextColor3 = [Link](255,255,255)
[Link] = "Time: 0"
[Link] = gui
local counterLabel = [Link]("TextLabel")
[Link] = [Link](0, 200, 0, 50)
[Link] = [Link](0, 20, 0, 80)
[Link] = true
counterLabel.BackgroundColor3 = [Link](0,0,0)
counterLabel.TextColor3 = [Link](255,255,255)
[Link] = "Players Flung: 0"
[Link] = gui
local toggleButton = [Link]("TextButton")
[Link] = [Link](0, 150, 0, 50)
[Link] = [Link](0, 20, 0, 140)
[Link] = true
toggleButton.BackgroundColor3 = [Link](50,50,50)
toggleButton.TextColor3 = [Link](255,255,255)
[Link] = "Start Fling"
[Link] = gui
-- Minimize button
local minimizeButton = [Link]("TextButton")
[Link] = [Link](0, 30, 0, 30)
[Link] = [Link](0, 230, 0, 20)
[Link] = "-"
[Link] = true
minimizeButton.BackgroundColor3 = [Link](100,100,100)
minimizeButton.TextColor3 = [Link](255,255,255)
[Link] = gui
-- Close button
local closeButton = [Link]("TextButton")
[Link] = [Link](0, 30, 0, 30)
[Link] = [Link](0, 270, 0, 20)
[Link] = "X"
[Link] = true
closeButton.BackgroundColor3 = [Link](200,0,0)
closeButton.TextColor3 = [Link](255,255,255)
[Link] = gui
-- GitHub button (rainbow)
local githubButton = [Link]("TextButton")
[Link] = [Link](0, 250, 0, 40)
[Link] = [Link](0, 20, 0, 200)
[Link] = true
githubButton.BackgroundColor3 = [Link](30,30,30)
githubButton.TextColor3 = [Link](255,255,255)
[Link] = "[Link]
[Link] = gui
-- Rainbow effect for GitHub button
spawn(function()
local hue = 0
while [Link] do
hue = (hue + 0.01) % 1
githubButton.TextColor3 = [Link](hue, 1, 1)
[Link](0.05)
end
end)
-- Copy GitHub link on click
githubButton.MouseButton1Click:Connect(function()
if setclipboard then
setclipboard("[Link]
end
end)
-- Close functionality
closeButton.MouseButton1Click:Connect(function()
gui:Destroy()
end)
-- Minimize functionality
local minimized = false
minimizeButton.MouseButton1Click:Connect(function()
minimized = not minimized
if minimized then
[Link] = false
[Link] = false
[Link] = false
[Link] = false
[Link] = "+"
else
[Link] = true
[Link] = true
[Link] = true
[Link] = true
[Link] = "-"
end
end)
-- Variables
local startTime = 0
local FlingActive = false
local flungCount = 0
-- Timer update
[Link]:Connect(function()
if startTime > 0 then
[Link] = [Link]("Time: %.1f", tick() - startTime)
end
end)
-- Toggle button
toggleButton.MouseButton1Click:Connect(function()
FlingActive = not FlingActive
if FlingActive then
startTime = tick()
flungCount = 0
[Link] = "Players Flung: 0"
[Link] = "Stop Fling"
else
[Link] = "Start Fling"
end
end)
-- SkidFling function
local function SkidFling(TargetPlayer)
local Character = [Link]
local Humanoid = Character and Character:FindFirstChildOfClass("Humanoid")
local RootPart = Humanoid and [Link]
local TCharacter = [Link]
if not TCharacter then return false end
local THumanoid = TCharacter:FindFirstChildOfClass("Humanoid")
local TRootPart = THumanoid and [Link]
local THead = TCharacter:FindFirstChild("Head")
local Accessory = TCharacter:FindFirstChildOfClass("Accessory")
local Handle = Accessory and Accessory:FindFirstChild("Handle")
if Character and Humanoid and RootPart then
if [Link] < 50 then
getgenv().OldPos = [Link]
end
if THumanoid and [Link] then return false end
if THead then
[Link] = THead
elseif Handle then
[Link] = Handle
elseif THumanoid and TRootPart then
[Link] = THumanoid
end
if not TCharacter:FindFirstChildWhichIsA("BasePart") then return false
end
local FPos = function(BasePart, Pos, Ang)
[Link] = [Link]([Link]) * Pos * Ang
Character:SetPrimaryPartCFrame([Link]([Link]) *
Pos * Ang)
[Link] = [Link](9e7, 9e7 * 10, 9e7)
[Link] = [Link](9e8, 9e8, 9e8)
end
local SFBasePart = function(BasePart)
local TimeToWait = 2
local Time = tick()
local Angle = 0
repeat
if RootPart and THumanoid then
if [Link] < 50 then
Angle = Angle + 100
FPos(BasePart, [Link](0,1.5,0) +
[Link] * [Link]/1.25,
[Link]([Link](Angle),0,0))
[Link]()
FPos(BasePart, [Link](0,-1.5,0) +
[Link] * [Link]/1.25,
[Link]([Link](Angle),0,0))
[Link]()
end
end
until Time + TimeToWait < tick() or not FlingActive
end
local BV = [Link]("BodyVelocity")
[Link] = RootPart
[Link] = [Link](0,0,0)
[Link] = [Link](9e9,9e9,9e9)
Humanoid:SetStateEnabled([Link],false)
if TRootPart then
SFBasePart(TRootPart)
elseif THead then
SFBasePart(THead)
elseif Handle then
SFBasePart(Handle)
end
BV:Destroy()
Humanoid:SetStateEnabled([Link],true)
[Link] = Humanoid
return true
end
return false
end
-- Main fling loop
spawn(function()
while true do
if FlingActive then
local targets = {}
for _, otherPlayer in pairs(Players:GetPlayers()) do
if otherPlayer ~= player then
[Link](targets, otherPlayer)
end
end
if #targets > 0 then
local randomPlayer = targets[[Link](1,#targets)]
local success = pcall(SkidFling, randomPlayer)
if success then
flungCount = flungCount + 1
[Link] = "Players Flung: " .. flungCount
end
[Link](0.7)
else
[Link](1)
end
else
[Link](0.5)
end
end
end)