0% found this document useful (0 votes)
81 views5 pages

扔人脚本

The document outlines a Lua script for a GUI in a game that allows players to select other players and perform actions such as 'flinging' them or enabling 'noclip' mode. It includes features like a draggable interface, player selection dropdown, and buttons for one-time and looped flinging, as well as a destroy GUI option. The script also implements a rainbow effect for the title and updates the player list every 5 seconds.

Uploaded by

2357871499
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views5 pages

扔人脚本

The document outlines a Lua script for a GUI in a game that allows players to select other players and perform actions such as 'flinging' them or enabling 'noclip' mode. It includes features like a draggable interface, player selection dropdown, and buttons for one-time and looped flinging, as well as a destroy GUI option. The script also implements a rainbow effect for the title and updates the player list every 5 seconds.

Uploaded by

2357871499
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

-- Ultimate Fling + Noclip + Player Selector GUI | synt.

local Players = game:GetService("Players")


local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local plr = Players.LocalPlayer

local gui = Instance.new("ScreenGui", game.CoreGui)


gui.Name = "SyntFlingGUI"

local frame = Instance.new("Frame", gui)


frame.Size = UDim2.new(0, 320, 0, 230)
frame.Position = UDim2.new(0.3, 0, 0.3, 0)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.Active = true
frame.Draggable = true
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12)

-- Title
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0, 35)
title.BackgroundTransparency = 1
title.Font = Enum.Font.GothamBold
title.TextSize = 18
title.Text = "🧲 Synt.t Fling Panel"
title.TextColor3 = Color3.fromHSV(0,0,1)
-- Rainbow effect
spawn(function()
while true do
title.TextColor3 = Color3.fromHSV(tick() % 5 / 5, 1, 1)
task.wait(0.1)
end
end)

-- Player name textbox


local nameBox = Instance.new("TextBox", frame)
nameBox.Size = UDim2.new(0.62, 0, 0, 28)
nameBox.Position = UDim2.new(0.05, 0, 0, 50)
nameBox.PlaceholderText = "Type player name (full or partial)"
nameBox.ClearTextOnFocus = false
nameBox.Font = Enum.Font.Gotham
nameBox.TextSize = 15
nameBox.TextColor3 = Color3.new(1,1,1)
nameBox.BackgroundColor3 = Color3.fromRGB(40,40,40)
Instance.new("UICorner", nameBox).CornerRadius = UDim.new(0, 8)

-- Dropdown button
local dropdownBtn = Instance.new("TextButton", frame)
dropdownBtn.Size = UDim2.new(0.28, 0, 0, 28)
dropdownBtn.Position = UDim2.new(0.69, 0, 0, 50)
dropdownBtn.Text = "Select ▼"
dropdownBtn.Font = Enum.Font.Gotham
dropdownBtn.TextSize = 15
dropdownBtn.TextColor3 = Color3.new(1,1,1)
dropdownBtn.BackgroundColor3 = Color3.fromRGB(50,50,50)
Instance.new("UICorner", dropdownBtn).CornerRadius = UDim.new(0, 8)

-- Dropdown container (initially hidden)


local dropdownContainer = Instance.new("ScrollingFrame", frame)
dropdownContainer.Size = UDim2.new(0.92, 0, 0, 100)
dropdownContainer.Position = UDim2.new(0.04, 0, 0, 80)
dropdownContainer.BackgroundColor3 = Color3.fromRGB(30,30,30)
dropdownContainer.BorderSizePixel = 0
dropdownContainer.CanvasSize = UDim2.new(0, 0, 0, 0)
dropdownContainer.ScrollBarThickness = 6
dropdownContainer.Visible = false
Instance.new("UICorner", dropdownContainer).CornerRadius = UDim.new(0, 8)

-- Buttons inside dropdown


local dropdownButtons = {}

-- Update dropdown list every 5 seconds


local function updateDropdown()
for _, btn in pairs(dropdownButtons) do btn:Destroy() end
dropdownButtons = {}
local yPos = 0
local players = Players:GetPlayers()
for i, p in ipairs(players) do
local btn = Instance.new("TextButton", dropdownContainer)
btn.Size = UDim2.new(1, -10, 0, 25)
btn.Position = UDim2.new(0, 5, 0, yPos)
btn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
btn.Font = Enum.Font.Gotham
btn.TextSize = 14
btn.Text = p.Name
btn.TextColor3 = Color3.new(1,1,1)
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
btn.AutoButtonColor = true

btn.MouseButton1Click:Connect(function()
nameBox.Text = p.Name
dropdownContainer.Visible = false
end)

yPos = yPos + 30
table.insert(dropdownButtons, btn)
end
dropdownContainer.CanvasSize = UDim2.new(0, 0, 0, yPos)
end

spawn(function()
while true do
updateDropdown()
task.wait(5)
end
end)

dropdownBtn.MouseButton1Click:Connect(function()
dropdownContainer.Visible = not dropdownContainer.Visible
end)

-- Fling angular velocity (reused for fling)


local flingSpin

local function startFling()


if flingSpin then flingSpin:Destroy() end
local character = plr.Character
if not character then return end
local hrp = character:FindFirstChild("HumanoidRootPart")
if not hrp then return end

flingSpin = Instance.new("BodyAngularVelocity")
flingSpin.AngularVelocity = Vector3.new(0, 999999, 0)
flingSpin.MaxTorque = Vector3.new(999999, 999999, 999999)
flingSpin.P = 10000
flingSpin.Parent = hrp
end

local function stopFling()


if flingSpin then
flingSpin:Destroy()
flingSpin = nil
end
end

-- One-time fling button


local flingBtn = Instance.new("TextButton", frame)
flingBtn.Size = UDim2.new(0.92, 0, 0, 35)
flingBtn.Position = UDim2.new(0.04, 0, 0, 190)
flingBtn.Text = "▶️ Fling Once"
flingBtn.Font = Enum.Font.GothamBold
flingBtn.TextSize = 16
flingBtn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
flingBtn.TextColor3 = Color3.new(1,1,1)
Instance.new("UICorner", flingBtn).CornerRadius = UDim.new(0, 10)

-- Loop fling toggle button


local loopToggleBtn = Instance.new("TextButton", frame)
loopToggleBtn.Size = UDim2.new(0.4, 0, 0, 35)
loopToggleBtn.Position = UDim2.new(0.05, 0, 0, 145)
loopToggleBtn.Text = "🔁 Loop Fling: OFF"
loopToggleBtn.Font = Enum.Font.GothamBold
loopToggleBtn.TextSize = 14
loopToggleBtn.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
loopToggleBtn.TextColor3 = Color3.new(1,1,1)
Instance.new("UICorner", loopToggleBtn).CornerRadius = UDim.new(0, 10)

local looping = false

loopToggleBtn.MouseButton1Click:Connect(function()
looping = not looping
loopToggleBtn.Text = looping and "🔁 Loop Fling: ON" or "🔁 Loop Fling: OFF"
if not looping then stopFling() end
end)

-- Destroy GUI button


local destroyBtn = Instance.new("TextButton", frame)
destroyBtn.Size = UDim2.new(0.4, 0, 0, 35)
destroyBtn.Position = UDim2.new(0.55, 0, 0, 145)
destroyBtn.Text = "❌ Destroy GUI"
destroyBtn.Font = Enum.Font.GothamBold
destroyBtn.TextSize = 14
destroyBtn.BackgroundColor3 = Color3.fromRGB(120, 40, 40)
destroyBtn.TextColor3 = Color3.new(1,1,1)
Instance.new("UICorner", destroyBtn).CornerRadius = UDim.new(0, 10)
destroyBtn.MouseButton1Click:Connect(function()
gui:Destroy()
end)

-- Function to get matching player by name or partial


local function findTarget(name)
local nameLower = name:lower()
for _, p in pairs(Players:GetPlayers()) do
if p ~= plr and p.Name:lower():sub(1, #nameLower) == nameLower then
return p
end
end
return nil
end

-- Function to teleport + fling target once


local function teleportAndFlingOnce(target)
if not target or not target.Character or not
target.Character:FindFirstChild("HumanoidRootPart") then return end
local hrp = plr.Character and plr.Character:FindFirstChild("HumanoidRootPart")
if not hrp then return end

-- Teleport player near target


hrp.CFrame = target.Character.HumanoidRootPart.CFrame + Vector3.new(2,0,0)
startFling()
end

-- One-time fling button action


flingBtn.MouseButton1Click:Connect(function()
local target = findTarget(nameBox.Text)
if target then
teleportAndFlingOnce(target)
else
print("Player not found")
end
end)

-- Loop fling logic


RunService.Heartbeat:Connect(function()
if looping then
local target = findTarget(nameBox.Text)
if target and target.Character and
target.Character:FindFirstChild("HumanoidRootPart") then
local hrp = plr.Character and
plr.Character:FindFirstChild("HumanoidRootPart")
if hrp then
hrp.CFrame = target.Character.HumanoidRootPart.CFrame +
Vector3.new(2,0,0)
startFling()
end
else
stopFling()
end
end
end)

-- Noclip toggle setup (press E)


local noclipEnabled = false
RunService.Stepped:Connect(function()
if noclipEnabled then
local character = plr.Character
if character then
for _, part in pairs(character:GetDescendants()) do
if part:IsA("BasePart") and part.CanCollide == true then
part.CanCollide = false
end
end
end
end
end)

UIS.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.E then
noclipEnabled = not noclipEnabled
game.StarterGui:SetCore("SendNotification", {
Title = "Noclip";
Text = noclipEnabled and "Enabled" or "Disabled";
Duration = 2;
})
end
end)

You might also like