EpicGamerSander1345

Untitled

Apr 26th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.18 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local TweenService = game:GetService("TweenService")
  4.  
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. -- Key System
  8. local keyGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
  9. keyGui.Name = "KeyGUI"
  10. keyGui.ResetOnSpawn = false
  11.  
  12. local keyFrame = Instance.new("Frame", keyGui)
  13. keyFrame.Size = UDim2.new(0, 300, 0, 200)
  14. keyFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
  15. keyFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  16. keyFrame.BorderSizePixel = 0
  17. keyFrame.Active = true
  18. keyFrame.Draggable = true
  19. Instance.new("UICorner", keyFrame).CornerRadius = UDim.new(0, 10)
  20. local keyStroke = Instance.new("UIStroke", keyFrame)
  21. keyStroke.Color = Color3.new(1, 1, 1)
  22. keyStroke.Thickness = 2
  23.  
  24. local keyTitle = Instance.new("TextLabel", keyFrame)
  25. keyTitle.Text = "Enter Key to Access GUI"
  26. keyTitle.Size = UDim2.new(1, 0, 0, 40)
  27. keyTitle.BackgroundTransparency = 1
  28. keyTitle.Font = Enum.Font.GothamBold
  29. keyTitle.TextColor3 = Color3.new(1, 1, 1)
  30. keyTitle.TextScaled = true
  31.  
  32. local keyInput = Instance.new("TextBox", keyFrame)
  33. keyInput.PlaceholderText = "Enter Key Here"
  34. keyInput.Size = UDim2.new(0.9, 0, 0, 40)
  35. keyInput.Position = UDim2.new(0.05, 0, 0, 50)
  36. keyInput.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  37. keyInput.Font = Enum.Font.Gotham
  38. keyInput.TextColor3 = Color3.new(1, 1, 1)
  39. keyInput.TextScaled = true
  40. Instance.new("UICorner", keyInput).CornerRadius = UDim.new(0, 6)
  41.  
  42. local submitButton = Instance.new("TextButton", keyFrame)
  43. submitButton.Text = "Submit"
  44. submitButton.Size = UDim2.new(0.9, 0, 0, 40)
  45. submitButton.Position = UDim2.new(0.05, 0, 0, 100)
  46. submitButton.BackgroundColor3 = Color3.fromRGB(60, 150, 60)
  47. submitButton.Font = Enum.Font.GothamBold
  48. submitButton.TextColor3 = Color3.new(1, 1, 1)
  49. submitButton.TextScaled = true
  50. Instance.new("UICorner", submitButton).CornerRadius = UDim.new(0, 6)
  51.  
  52. local discordButton = Instance.new("TextButton", keyFrame)
  53. discordButton.Text = "Join the Discord for the key!"
  54. discordButton.Size = UDim2.new(0.9, 0, 0, 40)
  55. discordButton.Position = UDim2.new(0.05, 0, 0, 150)
  56. discordButton.BackgroundColor3 = Color3.fromRGB(50, 50, 200)
  57. discordButton.Font = Enum.Font.GothamBold
  58. discordButton.TextColor3 = Color3.new(1, 1, 1)
  59. discordButton.TextScaled = true
  60. Instance.new("UICorner", discordButton).CornerRadius = UDim.new(0, 6)
  61.  
  62. discordButton.MouseButton1Click:Connect(function()
  63. setclipboard("https://discord.gg/FpTmRrzHXT")
  64. end)
  65.  
  66. submitButton.MouseButton1Click:Connect(function()
  67. if keyInput.Text == "SanderHub" then
  68. keyGui:Destroy()
  69.  
  70. -- Main GUI starts here
  71. local d = LocalPlayer
  72. local e = false
  73. local f = nil
  74. local g = 0.5
  75. local h = 10000
  76. local i = false
  77.  
  78. local n = Instance.new("ScreenGui", d:WaitForChild("PlayerGui"))
  79. n.Name = "FlingGUI"
  80. n.ResetOnSpawn = false
  81.  
  82. local o = Instance.new("Sound", n)
  83. o.SoundId = "rbxassetid://5852470908"
  84. o.Volume = 1
  85.  
  86. local p = Instance.new("Sound", n)
  87. p.SoundId = "rbxassetid://6042053626"
  88. p.Volume = 1
  89.  
  90. local q = Instance.new("Sound", n)
  91. q.SoundId = "rbxassetid://18439146929"
  92. q.Volume = 1
  93.  
  94. local r = Instance.new("Frame", n)
  95. r.Size = UDim2.new(0, 300, 0, 210)
  96. r.Position = UDim2.new(0.5, -150, 0.5, -105)
  97. r.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  98. r.BorderSizePixel = 0
  99. r.Active = true
  100. r.Draggable = true
  101. Instance.new("UICorner", r).CornerRadius = UDim.new(0, 10)
  102. local s = Instance.new("UIStroke", r)
  103. s.Color = Color3.new(1, 1, 1)
  104. s.Thickness = 2
  105.  
  106. local t = Instance.new("TextLabel", r)
  107. t.Text = "Sander's GUI"
  108. t.Size = UDim2.new(1, 0, 0, 30)
  109. t.BackgroundTransparency = 1
  110. t.Font = Enum.Font.GothamBold
  111. t.TextColor3 = Color3.new(1, 1, 1)
  112. t.TextScaled = true
  113.  
  114. local u = Instance.new("TextBox", r)
  115. u.PlaceholderText = "Enter partial name"
  116. u.Size = UDim2.new(0.9, 0, 0, 30)
  117. u.Position = UDim2.new(0.05, 0, 0, 40)
  118. u.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  119. u.Font = Enum.Font.Gotham
  120. u.TextColor3 = Color3.new(1, 1, 1)
  121. u.TextScaled = true
  122. Instance.new("UICorner", u).CornerRadius = UDim.new(0, 6)
  123.  
  124. local v = Instance.new("TextButton", r)
  125. v.Text = "Start Fling"
  126. v.Size = UDim2.new(0.42, 0, 0, 30)
  127. v.Position = UDim2.new(0.05, 0, 0, 90)
  128. v.BackgroundColor3 = Color3.fromRGB(60, 150, 60)
  129. v.Font = Enum.Font.GothamBold
  130. v.TextColor3 = Color3.new(1, 1, 1)
  131. v.TextScaled = true
  132. Instance.new("UICorner", v).CornerRadius = UDim.new(0, 6)
  133.  
  134. local w = Instance.new("TextButton", r)
  135. w.Text = "Stop"
  136. w.Size = UDim2.new(0.42, 0, 0, 30)
  137. w.Position = UDim2.new(0.53, 0, 0, 90)
  138. w.BackgroundColor3 = Color3.fromRGB(180, 50, 50)
  139. w.Font = Enum.Font.GothamBold
  140. w.TextColor3 = Color3.new(1, 1, 1)
  141. w.TextScaled = true
  142. Instance.new("UICorner", w).CornerRadius = UDim.new(0, 6)
  143.  
  144. local x = Instance.new("TextButton", r)
  145. x.Text = "Teleport"
  146. x.Size = UDim2.new(0.42, 0, 0, 30)
  147. x.Position = UDim2.new(0.05, 0, 0, 140)
  148. x.BackgroundColor3 = Color3.fromRGB(50, 50, 200)
  149. x.Font = Enum.Font.GothamBold
  150. x.TextColor3 = Color3.new(1, 1, 1)
  151. x.TextScaled = true
  152. Instance.new("UICorner", x).CornerRadius = UDim.new(0, 6)
  153.  
  154. local y = Instance.new("TextButton", r)
  155. y.Text = "Viewing: OFF"
  156. y.Size = UDim2.new(0.42, 0, 0, 30)
  157. y.Position = UDim2.new(0.53, 0, 0, 140)
  158. y.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
  159. y.Font = Enum.Font.GothamBold
  160. y.TextColor3 = Color3.new(1, 1, 1)
  161. y.TextScaled = true
  162. Instance.new("UICorner", y).CornerRadius = UDim.new(0, 6)
  163.  
  164. local function buttonEffects(button)
  165. button.MouseEnter:Connect(function()
  166. if o.IsLoaded then o:Play() end
  167. end)
  168. button.MouseButton1Click:Connect(function()
  169. if p.IsLoaded then p:Play() end
  170. end)
  171. end
  172.  
  173. buttonEffects(v)
  174. buttonEffects(w)
  175. buttonEffects(x)
  176. buttonEffects(y)
  177.  
  178. local function resolvePlayer(input)
  179. input = input:lower()
  180. for _, plr in pairs(Players:GetPlayers()) do
  181. if plr ~= d then
  182. local name = plr.Name:lower()
  183. local display = plr.DisplayName:lower()
  184. if name:sub(1, #input) == input or display:sub(1, #input) == input then
  185. return plr
  186. end
  187. end
  188. end
  189. end
  190.  
  191. u.FocusLost:Connect(function(af)
  192. if af then
  193. local ag = resolvePlayer(u.Text)
  194. if ag then
  195. u.Text = ag.DisplayName .. " (@" .. ag.Name .. ")"
  196. f = ag
  197. end
  198. end
  199. end)
  200.  
  201. v.MouseButton1Click:Connect(function()
  202. if f then
  203. e = true
  204. local char = d.Character
  205. if char then
  206. local hrp = char:FindFirstChild("HumanoidRootPart")
  207. if hrp then hrp.Anchored = false end
  208.  
  209. local hum = char:FindFirstChild("Humanoid")
  210. if hum then
  211. hum:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  212. hum:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
  213. hum:SetStateEnabled(Enum.HumanoidStateType.Physics, false)
  214. hum.Health = math.huge
  215. end
  216. end
  217. workspace.CurrentCamera.CameraSubject = f.Character.Humanoid
  218. workspace.CurrentCamera.CameraType = Enum.CameraType.Attach
  219. end
  220. end)
  221.  
  222. w.MouseButton1Click:Connect(function()
  223. e = false
  224. local char = d.Character
  225. if char then
  226. local hum = char:FindFirstChild("Humanoid")
  227. if hum then hum.Health = 0 end
  228. end
  229. workspace.CurrentCamera.CameraSubject = d.Character.Humanoid
  230. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  231. end)
  232.  
  233. x.MouseButton1Click:Connect(function()
  234. if f and f.Character and f.Character:FindFirstChild("HumanoidRootPart") then
  235. local target = f.Character.HumanoidRootPart
  236. d.Character:SetPrimaryPartCFrame(target.CFrame)
  237. end
  238. end)
  239.  
  240. y.MouseButton1Click:Connect(function()
  241. i = not i
  242. if i then
  243. y.Text = "Viewing: ON"
  244. if f and f.Character and f.Character:FindFirstChild("HumanoidRootPart") then
  245. workspace.CurrentCamera.CameraSubject = f.Character.Humanoid
  246. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  247. end
  248. else
  249. y.Text = "Viewing: OFF"
  250. workspace.CurrentCamera.CameraSubject = d.Character.Humanoid
  251. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  252. end
  253. end)
  254.  
  255. RunService.Heartbeat:Connect(function()
  256. local char = d.Character
  257. local root = char and char:FindFirstChild("HumanoidRootPart")
  258. if e and root and f and f.Character and f.Character:FindFirstChild("HumanoidRootPart") then
  259. local targetRoot = f.Character.HumanoidRootPart
  260. local predicted = targetRoot.Position + (targetRoot.Velocity * g)
  261. root.CFrame = CFrame.new(predicted + Vector3.new(0, 1, 0))
  262. root.Velocity = targetRoot.Velocity * 15 + Vector3.new(0, h, 0)
  263. root.RotVelocity = Vector3.new(100000, 100000, 100000)
  264. end
  265. end)
  266. else
  267. LocalPlayer:Kick("Incorrect Key Entered! Get the correct key from the Discord!")
  268. end
  269. end)
  270.  
Add Comment
Please, Sign In to add comment