MaxproGlitcher

Fling Gui .lua

Mar 7th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local ToggleButton = Instance.new("TextButton")
  4. local TextLabel = Instance.new("TextLabel")
  5. local HideButton = Instance.new("TextButton")
  6. local PowerLabel = Instance.new("TextLabel")
  7. local PowerSlider = Instance.new("TextButton")
  8. local PowerBar = Instance.new("Frame")
  9. local UICorner = Instance.new("UICorner")
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12. ScreenGui.ResetOnSpawn = false
  13.  
  14. Frame.Parent = ScreenGui
  15. Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  16. Frame.Position = UDim2.new(0.35, 0, 0.4, 0)
  17. Frame.Size = UDim2.new(0, 220, 0, 150)
  18. Frame.Active = true
  19. Frame.Draggable = true
  20. UICorner.Parent = Frame
  21.  
  22. TextLabel.Parent = Frame
  23. TextLabel.BackgroundTransparency = 1
  24. TextLabel.Size = UDim2.new(1, 0, 0.2, 0)
  25. TextLabel.Font = Enum.Font.SourceSansBold
  26. TextLabel.Text = "Fuck Fling"
  27. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  28. TextLabel.TextSize = 22
  29.  
  30. ToggleButton.Parent = Frame
  31. ToggleButton.Position = UDim2.new(0.1, 0, 0.3, 0)
  32. ToggleButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  33. ToggleButton.Font = Enum.Font.SourceSansBold
  34. ToggleButton.Text = "OFF"
  35. ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. ToggleButton.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
  37. ToggleButton.TextSize = 24
  38. UICorner:Clone().Parent = ToggleButton
  39.  
  40. PowerLabel.Parent = Frame
  41. PowerLabel.BackgroundTransparency = 1
  42. PowerLabel.Position = UDim2.new(0.1, 0, 0.55, 0)
  43. PowerLabel.Size = UDim2.new(0.8, 0, 0.15, 0)
  44. PowerLabel.Font = Enum.Font.SourceSansBold
  45. PowerLabel.Text = "Fling Power: 10000"
  46. PowerLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. PowerLabel.TextSize = 18
  48.  
  49. PowerBar.Parent = Frame
  50. PowerBar.Position = UDim2.new(0.1, 0, 0.7, 0)
  51. PowerBar.Size = UDim2.new(0.8, 0, 0.1, 0)
  52. PowerBar.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  53. UICorner:Clone().Parent = PowerBar
  54. PowerSlider.Parent = PowerBar
  55. PowerSlider.Size = UDim2.new(0.1, 0, 1, 0)
  56. PowerSlider.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
  57. UICorner:Clone().Parent = PowerSlider
  58. HideButton.Parent = ScreenGui
  59. HideButton.Position = UDim2.new(0.05, 0, 0.9, 0)
  60. HideButton.Size = UDim2.new(0, 50, 0, 30)
  61. HideButton.Font = Enum.Font.SourceSansBold
  62. HideButton.Text = "👁"
  63. HideButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  64. HideButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  65. UICorner:Clone().Parent = HideButton
  66. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  67. local RunService = game:GetService("RunService")
  68. local Players = game:GetService("Players")
  69. local UserInputService = game:GetService("UserInputService")
  70.  
  71. local hiddenfling = false
  72. local flingPower = 10000
  73. local lp = Players.LocalPlayer
  74. local dragging = false
  75.  
  76. if not ReplicatedStorage:FindFirstChild("juisdfj0i32i0eidsuf0iok") then
  77. local detection = Instance.new("Decal")
  78. detection.Name = "juisdfj0i32i0eidsuf0iok"
  79. detection.Parent = ReplicatedStorage
  80. end
  81.  
  82. local function fling()
  83. local hrp, c, vel, movel = nil, nil, nil, 0.1
  84.  
  85. while true do
  86. RunService.Heartbeat:Wait()
  87. if hiddenfling then
  88. while hiddenfling and not (c and c.Parent and hrp and hrp.Parent) do
  89. RunService.Heartbeat:Wait()
  90. c = lp.Character
  91. hrp = c and c:FindFirstChild("HumanoidRootPart")
  92. end
  93.  
  94. if hiddenfling then
  95. vel = hrp.Velocity
  96. hrp.Velocity = vel * flingPower + Vector3.new(0, flingPower, 0)
  97. RunService.RenderStepped:Wait()
  98. if c and c.Parent and hrp and hrp.Parent then
  99. hrp.Velocity = vel
  100. end
  101. RunService.Stepped:Wait()
  102. if c and c.Parent and hrp and hrp.Parent then
  103. hrp.Velocity = vel + Vector3.new(0, movel, 0)
  104. movel = movel * -1
  105. end
  106. end
  107. end
  108. end
  109. end
  110.  
  111. ToggleButton.MouseButton1Click:Connect(function()
  112. hiddenfling = not hiddenfling
  113. if hiddenfling then
  114. ToggleButton.Text = "ON"
  115. ToggleButton.BackgroundColor3 = Color3.fromRGB(0, 150, 0)
  116. else
  117. ToggleButton.Text = "OFF"
  118. ToggleButton.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
  119. end
  120. end)
  121.  
  122. HideButton.MouseButton1Click:Connect(function()
  123. Frame.Visible = not Frame.Visible
  124. if Frame.Visible then
  125. HideButton.Text = "👁"
  126. else
  127. HideButton.Text = "👀"
  128. end
  129. end)
  130.  
  131. PowerSlider.InputBegan:Connect(function(input)
  132. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  133. dragging = true
  134. end
  135. end)
  136.  
  137. PowerSlider.InputEnded:Connect(function(input)
  138. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  139. dragging = false
  140. end
  141. end)
  142.  
  143. UserInputService.InputChanged:Connect(function(input)
  144. if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  145. local mousePos = input.Position.X
  146. local barPos = PowerBar.AbsolutePosition.X
  147. local barSize = PowerBar.AbsoluteSize.X
  148. local newPos = math.clamp((mousePos - barPos) / barSize, 0, 1)
  149.  
  150. PowerSlider.Position = UDim2.new(newPos, 0, 0, 0)
  151. flingPower = math.floor(newPos * 50000) + 5000
  152. PowerLabel.Text = "Fling Power: " .. flingPower
  153. end
  154. end)
  155.  
  156. fling()
Add Comment
Please, Sign In to add comment