Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Services
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local Debris = game:GetService("Debris")
- local SoundService = game:GetService("SoundService")
- -- Local player
- local localPlayer = Players.LocalPlayer
- local targetPlayer = nil
- local fling = false
- local autoKill = false
- -- Find player by partial name or display name
- local function findPlayerByPartialName(partial)
- partial = partial:lower()
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= localPlayer then
- local uname = player.Name:lower()
- local dname = player.DisplayName:lower()
- if uname:sub(1, #partial) == partial or dname:sub(1, #partial) == partial then
- return player
- end
- end
- end
- return nil
- end
- -- Auto-complete the username in the textbox
- local function autoCompleteUsername(inputBox)
- local partialName = inputBox.Text:lower()
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= localPlayer then
- local uname = player.Name:lower()
- local dname = player.DisplayName:lower()
- if uname:sub(1, #partialName) == partialName then
- inputBox.Text = player.Name
- return
- elseif dname:sub(1, #partialName) == partialName then
- inputBox.Text = player.DisplayName
- return
- end
- end
- end
- end
- -- Strong fling logic
- local function flingTarget(targetHRP)
- local myHRP = localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart")
- if targetHRP and myHRP then
- myHRP.CFrame = targetHRP.CFrame
- local bv = Instance.new("BodyVelocity")
- bv.Velocity = Vector3.new(999999, 999999, 999999)
- bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- bv.P = 1e9
- bv.Parent = targetHRP
- Debris:AddItem(bv, 0.2)
- end
- end
- -- Auto-kill logic
- local function autoKillPlayer(targetPlayer)
- if targetPlayer and targetPlayer.Character then
- local humanoid = targetPlayer.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.Health = 0 -- Instantly kill the player
- end
- end
- end
- -- GUI Setup
- local screenGui = Instance.new("ScreenGui", game.CoreGui)
- screenGui.Name = "FlingGui"
- -- Loading screen
- local loadingFrame = Instance.new("Frame", screenGui)
- loadingFrame.Size = UDim2.new(0, 200, 0, 100)
- loadingFrame.Position = UDim2.new(0.5, -100, 0.5, -50)
- loadingFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- loadingFrame.BorderSizePixel = 0
- local loadingCorner = Instance.new("UICorner", loadingFrame)
- loadingCorner.CornerRadius = UDim.new(0, 16)
- local loadingLabel = Instance.new("TextLabel", loadingFrame)
- loadingLabel.Size = UDim2.new(1, 0, 1, 0)
- loadingLabel.BackgroundTransparency = 1
- loadingLabel.Text = ""
- loadingLabel.TextColor3 = Color3.new(1, 1, 1)
- loadingLabel.Font = Enum.Font.SourceSansBold
- loadingLabel.TextSize = 28
- -- Typewriter animation
- local function typeText(obj, text, duration)
- local interval = duration / #text
- for i = 1, #text do
- obj.Text = text:sub(1, i)
- task.wait(interval)
- end
- end
- -- Sounds
- local typewriterSound = Instance.new("Sound", loadingFrame)
- typewriterSound.SoundId = "rbxassetid://9114358367"
- typewriterSound.Looped = true
- typewriterSound:Play()
- local whooshSound = Instance.new("Sound", loadingFrame)
- whooshSound.SoundId = "rbxassetid://7106659874"
- whooshSound.Looped = true
- whooshSound:Play()
- -- Animate loading text
- task.spawn(function()
- typeText(loadingLabel, "Loading...", 2)
- end)
- -- Fade out loading screen
- task.wait(3)
- TweenService:Create(loadingFrame, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
- TweenService:Create(loadingLabel, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
- task.wait(0.5)
- loadingFrame:Destroy()
- -- Main GUI
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 250, 0, 230)
- mainFrame.Position = UDim2.new(0, 100, 0, 100)
- mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- mainFrame.BorderSizePixel = 0
- mainFrame.Active = true
- mainFrame.Draggable = true
- mainFrame.Visible = false
- mainFrame.Parent = screenGui
- local cornerTop = Instance.new("UICorner", mainFrame)
- cornerTop.CornerRadius = UDim.new(0, 12)
- local cornerBottom = Instance.new("UICorner", mainFrame)
- cornerBottom.CornerRadius = UDim.new(0, 16)
- TweenService:Create(mainFrame, TweenInfo.new(0.4), {Visible = true}):Play()
- local title = Instance.new("TextLabel", mainFrame)
- title.Size = UDim2.new(1, 0, 0, 30)
- title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- title.Text = "Sander's GUI"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.Font = Enum.Font.SourceSansBold
- title.TextSize = 20
- local textbox = Instance.new("TextBox", mainFrame)
- textbox.Size = UDim2.new(1, -20, 0, 30)
- textbox.Position = UDim2.new(0, 10, 0, 40)
- textbox.PlaceholderText = "Enter username"
- textbox.Text = ""
- textbox.TextColor3 = Color3.new(1, 1, 1)
- textbox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- textbox.BorderSizePixel = 0
- textbox.Font = Enum.Font.SourceSans
- textbox.TextSize = 18
- textbox.FocusLost:Connect(function()
- autoCompleteUsername(textbox)
- end)
- -- Hoverable buttons with emojis
- local function makeButton(text, yOffset, emoji, callback)
- local button = Instance.new("TextButton", mainFrame)
- button.Size = UDim2.new(1, -20, 0, 30)
- button.Position = UDim2.new(0, 10, 0, yOffset)
- button.Text = emoji .. " " .. text .. " " .. emoji
- button.TextColor3 = Color3.new(1, 1, 1)
- button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- button.BorderSizePixel = 0
- button.Font = Enum.Font.SourceSansBold
- button.TextSize = 18
- button.MouseEnter:Connect(function()
- TweenService:Create(button, TweenInfo.new(0.2), {Rotation = 5}):Play()
- local hoverSound = Instance.new("Sound", button)
- hoverSound.SoundId = "rbxassetid://5852470908"
- hoverSound:Play()
- end)
- button.MouseLeave:Connect(function()
- TweenService:Create(button, TweenInfo.new(0.2), {Rotation = 0}):Play()
- end)
- button.MouseButton1Click:Connect(function()
- local clickSound = Instance.new("Sound", button)
- clickSound.SoundId = "rbxassetid://6042053626"
- clickSound.Volume = 1.5
- clickSound:Play()
- callback()
- end)
- end
- makeButton("Fling", 80, "💥", function()
- local targetName = textbox.Text
- local player = findPlayerByPartialName(targetName)
- if player then
- targetPlayer = player
- local hrp = targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart")
- if hrp then
- flingTarget(hrp)
- fling = true
- warn("Flinging: " .. player.Name)
- end
- end
- end)
- makeButton("Stop Fling", 115, "⛔", function()
- fling = false
- targetPlayer = nil
- local myHRP = localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart")
- if myHRP then
- myHRP.RotVelocity = Vector3.zero
- end
- warn("Fling stopped.")
- end)
- makeButton("Teleport", 150, "🚶♂️", function()
- local targetName = textbox.Text
- local player = findPlayerByPartialName(targetName)
- if player and player.Character then
- local targetHRP = player.Character:FindFirstChild("HumanoidRootPart")
- if targetHRP then
- local myChar = localPlayer.Character
- if myChar then
- myChar:MoveTo(targetHRP.Position)
- warn("Teleported to " .. player.Name)
- end
- end
- end
- end)
- makeButton("Reset", 185, "🔄", function()
- local char = localPlayer.Character
- if char then
- local humanoid = char:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.Health = 0
- warn("Reset character.")
- end
- end
- end)
- makeButton("Auto Kill", 220, "💀", function()
- local targetName = textbox.Text
- local player = findPlayerByPartialName(targetName)
- if player then
- targetPlayer = player
- autoKillPlayer(targetPlayer)
- autoKill = true
- warn("Auto-killed: " .. player.Name)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement