
KeylessUniversal

-- Touch Fling Script
-- Place in LocalScript inside StarterPlayerScripts
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
local Character = workspace:WaitForChild("pass_wordhowareyou")
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Enabled = false
local FlingSent = {}
-- ========================
-- GUI SETUP
-- ========================
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "TouchFlingGUI"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
-- Main Frame
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 220, 0, 160)
MainFrame.Position = UDim2.new(0, 20, 0.5, -80)
MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 25)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Parent = ScreenGui
-- Corner Rounding
local Corner = Instance.new("UICorner")
Corner.CornerRadius = UDim.new(0, 14)
Corner.Parent = MainFrame
-- Gradient
local Gradient = Instance.new("UIGradient")
Gradient.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(30, 10, 60)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(10, 10, 30))
})
Gradient.Rotation = 135
Gradient.Parent = MainFrame
-- Stroke / Border
local Stroke = Instance.new("UIStroke")
Stroke.Color = Color3.fromRGB(120, 60, 220)
Stroke.Thickness = 2
Stroke.Parent = MainFrame
-- Title
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "⚡ Touch Fling"
Title.TextColor3 = Color3.fromRGB(200, 150, 255)
Title.TextSize = 20
Title.Font = Enum.Font.GothamBold
Title.Parent = MainFrame
-- Status Label
local StatusLabel = Instance.new("TextLabel")
StatusLabel.Size = UDim2.new(1, 0, 0, 24)
StatusLabel.Position = UDim2.new(0, 0, 0, 42)
StatusLabel.BackgroundTransparency = 1
StatusLabel.Text = "Status: DISABLED"
StatusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
StatusLabel.TextSize = 14
StatusLabel.Font = Enum.Font.GothamSemibold
StatusLabel.Parent = MainFrame
-- Enable Button
local EnableBtn = Instance.new("TextButton")
EnableBtn.Size = UDim2.new(0, 85, 0, 38)
EnableBtn.Position = UDim2.new(0, 15, 0, 82)
EnableBtn.BackgroundColor3 = Color3.fromRGB(60, 200, 100)
EnableBtn.Text = "ENABLE"
EnableBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
EnableBtn.TextSize = 14
EnableBtn.Font = Enum.Font.GothamBold
EnableBtn.BorderSizePixel = 0
EnableBtn.Parent = MainFrame
local ECorner = Instance.new("UICorner")
ECorner.CornerRadius = UDim.new(0, 8)
ECorner.Parent = EnableBtn
-- Disable Button
local DisableBtn = Instance.new("TextButton")
DisableBtn.Size = UDim2.new(0, 85, 0, 38)
DisableBtn.Position = UDim2.new(0, 118, 0, 82)
DisableBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
DisableBtn.Text = "DISABLE"
DisableBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
DisableBtn.TextSize = 14
DisableBtn.Font = Enum.Font.GothamBold
DisableBtn.BorderSizePixel = 0
DisableBtn.Parent = MainFrame
local DCorner = Instance.new("UICorner")
DCorner.CornerRadius = UDim.new(0, 8)
DCorner.Parent = DisableBtn
-- Footer label
local Footer = Instance.new("TextLabel")
Footer.Size = UDim2.new(1, 0, 0, 20)
Footer.Position = UDim2.new(0, 0, 0, 133)
Footer.BackgroundTransparency = 1
Footer.Text = "Touch a player to fling them"
Footer.TextColor3 = Color3.fromRGB(100, 80, 140)
Footer.TextSize = 11
Footer.Font = Enum.Font.Gotham
Footer.Parent = MainFrame
-- ========================
-- BUTTON LOGIC
-- ========================
EnableBtn.MouseButton1Click:Connect(function()
Enabled = true
StatusLabel.Text = "Status: ENABLED"
StatusLabel.TextColor3 = Color3.fromRGB(80, 255, 120)
TweenService:Create(MainFrame, TweenInfo.new(0.3), {
BackgroundColor3 = Color3.fromRGB(15, 25, 15)
}):Play()
Stroke.Color = Color3.fromRGB(60, 220, 100)
end)
DisableBtn.MouseButton1Click:Connect(function()
Enabled = false
StatusLabel.Text = "Status: DISABLED"
StatusLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
TweenService:Create(MainFrame, TweenInfo.new(0.3), {
BackgroundColor3 = Color3.fromRGB(15, 15, 25)
}):Play()
Stroke.Color = Color3.fromRGB(120, 60, 220)
end)
-- ========================
-- FLING LOGIC
-- ========================
local function FlingPlayer(otherHRP)
local bv = Instance.new("BodyVelocity")
bv.Velocity = Vector3.new(
math.random(-120, 120),
math.random(80, 160),
math.random(-120, 120)
)
bv.MaxForce = Vector3.new(1e9, 1e9, 1e9)
bv.Parent = otherHRP
game:GetService("Debris"):AddItem(bv, 0.15)
end
RunService.Heartbeat:Connect(function()
if not Enabled then return end
if not Character or not HumanoidRootPart then return end
for _, otherPlayer in ipairs(Players:GetPlayers()) do
if otherPlayer.Character and otherPlayer ~= LocalPlayer then
local otherHRP = otherPlayer.Character:FindFirstChild("HumanoidRootPart")
if otherHRP then
local distance = (HumanoidRootPart.Position - otherHRP.Position).Magnitude
if distance < 6 then
if not FlingSent[otherPlayer.Name] then
FlingSent[otherPlayer.Name] = true
FlingPlayer(otherHRP)
task.delay(1.5, function()
FlingSent[otherPlayer.Name] = nil
end)
end
end
end
end
end
end)



Cool
@Cgxv1254 我讨厌你的头像,请修改