Advertisement
EpicGamerSander1345

Untitled

Apr 17th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.68 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local TweenService = game:GetService("TweenService")
  5. local Debris = game:GetService("Debris")
  6. local SoundService = game:GetService("SoundService")
  7.  
  8. -- Local player
  9. local localPlayer = Players.LocalPlayer
  10. local targetPlayer = nil
  11. local fling = false
  12. local autoKill = false
  13.  
  14. -- Find player by partial name or display name
  15. local function findPlayerByPartialName(partial)
  16. partial = partial:lower()
  17. for _, player in ipairs(Players:GetPlayers()) do
  18. if player ~= localPlayer then
  19. local uname = player.Name:lower()
  20. local dname = player.DisplayName:lower()
  21. if uname:sub(1, #partial) == partial or dname:sub(1, #partial) == partial then
  22. return player
  23. end
  24. end
  25. end
  26. return nil
  27. end
  28.  
  29. -- Auto-complete the username in the textbox
  30. local function autoCompleteUsername(inputBox)
  31. local partialName = inputBox.Text:lower()
  32. for _, player in ipairs(Players:GetPlayers()) do
  33. if player ~= localPlayer then
  34. local uname = player.Name:lower()
  35. local dname = player.DisplayName:lower()
  36. if uname:sub(1, #partialName) == partialName then
  37. inputBox.Text = player.Name
  38. return
  39. elseif dname:sub(1, #partialName) == partialName then
  40. inputBox.Text = player.DisplayName
  41. return
  42. end
  43. end
  44. end
  45. end
  46.  
  47. -- Strong fling logic
  48. local function flingTarget(targetHRP)
  49. local myHRP = localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart")
  50. if targetHRP and myHRP then
  51. myHRP.CFrame = targetHRP.CFrame
  52. local bv = Instance.new("BodyVelocity")
  53. bv.Velocity = Vector3.new(999999, 999999, 999999)
  54. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  55. bv.P = 1e9
  56. bv.Parent = targetHRP
  57. Debris:AddItem(bv, 0.2)
  58. end
  59. end
  60.  
  61. -- Auto-kill logic
  62. local function autoKillPlayer(targetPlayer)
  63. if targetPlayer and targetPlayer.Character then
  64. local humanoid = targetPlayer.Character:FindFirstChildOfClass("Humanoid")
  65. if humanoid then
  66. humanoid.Health = 0 -- Instantly kill the player
  67. end
  68. end
  69. end
  70.  
  71. -- GUI Setup
  72. local screenGui = Instance.new("ScreenGui", game.CoreGui)
  73. screenGui.Name = "FlingGui"
  74.  
  75. -- Loading screen
  76. local loadingFrame = Instance.new("Frame", screenGui)
  77. loadingFrame.Size = UDim2.new(0, 200, 0, 100)
  78. loadingFrame.Position = UDim2.new(0.5, -100, 0.5, -50)
  79. loadingFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  80. loadingFrame.BorderSizePixel = 0
  81.  
  82. local loadingCorner = Instance.new("UICorner", loadingFrame)
  83. loadingCorner.CornerRadius = UDim.new(0, 16)
  84.  
  85. local loadingLabel = Instance.new("TextLabel", loadingFrame)
  86. loadingLabel.Size = UDim2.new(1, 0, 1, 0)
  87. loadingLabel.BackgroundTransparency = 1
  88. loadingLabel.Text = ""
  89. loadingLabel.TextColor3 = Color3.new(1, 1, 1)
  90. loadingLabel.Font = Enum.Font.SourceSansBold
  91. loadingLabel.TextSize = 28
  92.  
  93. -- Typewriter animation
  94. local function typeText(obj, text, duration)
  95. local interval = duration / #text
  96. for i = 1, #text do
  97. obj.Text = text:sub(1, i)
  98. task.wait(interval)
  99. end
  100. end
  101.  
  102. -- Sounds
  103. local typewriterSound = Instance.new("Sound", loadingFrame)
  104. typewriterSound.SoundId = "rbxassetid://9114358367"
  105. typewriterSound.Looped = true
  106. typewriterSound:Play()
  107.  
  108. local whooshSound = Instance.new("Sound", loadingFrame)
  109. whooshSound.SoundId = "rbxassetid://7106659874"
  110. whooshSound.Looped = true
  111. whooshSound:Play()
  112.  
  113. -- Animate loading text
  114. task.spawn(function()
  115. typeText(loadingLabel, "Loading...", 2)
  116. end)
  117.  
  118. -- Fade out loading screen
  119. task.wait(3)
  120. TweenService:Create(loadingFrame, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
  121. TweenService:Create(loadingLabel, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
  122. task.wait(0.5)
  123. loadingFrame:Destroy()
  124.  
  125. -- Main GUI
  126. local mainFrame = Instance.new("Frame")
  127. mainFrame.Size = UDim2.new(0, 250, 0, 230)
  128. mainFrame.Position = UDim2.new(0, 100, 0, 100)
  129. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  130. mainFrame.BorderSizePixel = 0
  131. mainFrame.Active = true
  132. mainFrame.Draggable = true
  133. mainFrame.Visible = false
  134. mainFrame.Parent = screenGui
  135.  
  136. local cornerTop = Instance.new("UICorner", mainFrame)
  137. cornerTop.CornerRadius = UDim.new(0, 12)
  138.  
  139. local cornerBottom = Instance.new("UICorner", mainFrame)
  140. cornerBottom.CornerRadius = UDim.new(0, 16)
  141.  
  142. TweenService:Create(mainFrame, TweenInfo.new(0.4), {Visible = true}):Play()
  143.  
  144. local title = Instance.new("TextLabel", mainFrame)
  145. title.Size = UDim2.new(1, 0, 0, 30)
  146. title.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  147. title.Text = "Sander's GUI"
  148. title.TextColor3 = Color3.new(1, 1, 1)
  149. title.Font = Enum.Font.SourceSansBold
  150. title.TextSize = 20
  151.  
  152. local textbox = Instance.new("TextBox", mainFrame)
  153. textbox.Size = UDim2.new(1, -20, 0, 30)
  154. textbox.Position = UDim2.new(0, 10, 0, 40)
  155. textbox.PlaceholderText = "Enter username"
  156. textbox.Text = ""
  157. textbox.TextColor3 = Color3.new(1, 1, 1)
  158. textbox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  159. textbox.BorderSizePixel = 0
  160. textbox.Font = Enum.Font.SourceSans
  161. textbox.TextSize = 18
  162.  
  163. textbox.FocusLost:Connect(function()
  164. autoCompleteUsername(textbox)
  165. end)
  166.  
  167. -- Hoverable buttons with emojis
  168. local function makeButton(text, yOffset, emoji, callback)
  169. local button = Instance.new("TextButton", mainFrame)
  170. button.Size = UDim2.new(1, -20, 0, 30)
  171. button.Position = UDim2.new(0, 10, 0, yOffset)
  172. button.Text = emoji .. " " .. text .. " " .. emoji
  173. button.TextColor3 = Color3.new(1, 1, 1)
  174. button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  175. button.BorderSizePixel = 0
  176. button.Font = Enum.Font.SourceSansBold
  177. button.TextSize = 18
  178.  
  179. button.MouseEnter:Connect(function()
  180. TweenService:Create(button, TweenInfo.new(0.2), {Rotation = 5}):Play()
  181. local hoverSound = Instance.new("Sound", button)
  182. hoverSound.SoundId = "rbxassetid://5852470908"
  183. hoverSound:Play()
  184. end)
  185.  
  186. button.MouseLeave:Connect(function()
  187. TweenService:Create(button, TweenInfo.new(0.2), {Rotation = 0}):Play()
  188. end)
  189.  
  190. button.MouseButton1Click:Connect(function()
  191. local clickSound = Instance.new("Sound", button)
  192. clickSound.SoundId = "rbxassetid://6042053626"
  193. clickSound.Volume = 1.5
  194. clickSound:Play()
  195. callback()
  196. end)
  197. end
  198.  
  199. makeButton("Fling", 80, "💥", function()
  200. local targetName = textbox.Text
  201. local player = findPlayerByPartialName(targetName)
  202. if player then
  203. targetPlayer = player
  204. local hrp = targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart")
  205. if hrp then
  206. flingTarget(hrp)
  207. fling = true
  208. warn("Flinging: " .. player.Name)
  209. end
  210. end
  211. end)
  212.  
  213. makeButton("Stop Fling", 115, "⛔", function()
  214. fling = false
  215. targetPlayer = nil
  216. local myHRP = localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart")
  217. if myHRP then
  218. myHRP.RotVelocity = Vector3.zero
  219. end
  220. warn("Fling stopped.")
  221. end)
  222.  
  223. makeButton("Teleport", 150, "🚶‍♂️", function()
  224. local targetName = textbox.Text
  225. local player = findPlayerByPartialName(targetName)
  226. if player and player.Character then
  227. local targetHRP = player.Character:FindFirstChild("HumanoidRootPart")
  228. if targetHRP then
  229. local myChar = localPlayer.Character
  230. if myChar then
  231. myChar:MoveTo(targetHRP.Position)
  232. warn("Teleported to " .. player.Name)
  233. end
  234. end
  235. end
  236. end)
  237.  
  238. makeButton("Reset", 185, "🔄", function()
  239. local char = localPlayer.Character
  240. if char then
  241. local humanoid = char:FindFirstChildOfClass("Humanoid")
  242. if humanoid then
  243. humanoid.Health = 0
  244. warn("Reset character.")
  245. end
  246. end
  247. end)
  248.  
  249. makeButton("Auto Kill", 220, "💀", function()
  250. local targetName = textbox.Text
  251. local player = findPlayerByPartialName(targetName)
  252. if player then
  253. targetPlayer = player
  254. autoKillPlayer(targetPlayer)
  255. autoKill = true
  256. warn("Auto-killed: " .. player.Name)
  257. end
  258. end)
  259.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement