uoryetwq

fling all gui

Mar 28th, 2025
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.81 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. ScreenGui.ResetOnSpawn = false
  3. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4.  
  5. local Themes = {
  6. ["Cristalino"] = {
  7. BackgroundColor = Color3.fromRGB(40, 40, 40),
  8. TitleColor = Color3.fromRGB(255, 255, 255),
  9. TextColor = Color3.fromRGB(200, 200, 200),
  10. ButtonColor = Color3.fromRGB(100, 100, 100)
  11. },
  12. ["Gris Suave"] = {
  13. BackgroundColor = Color3.fromRGB(30, 30, 30),
  14. TitleColor = Color3.fromRGB(255, 255, 255),
  15. TextColor = Color3.fromRGB(180, 180, 180),
  16. ButtonColor = Color3.fromRGB(80, 80, 80)
  17. }
  18. }
  19.  
  20. local selectedTheme = "Gris Suave"
  21.  
  22. local Frame = Instance.new("Frame", ScreenGui)
  23. Frame.Size = UDim2.new(0, 300, 0, 200)
  24. Frame.Position = UDim2.new(0.5, -150, 0.5, -100)
  25. Frame.BackgroundColor3 = Themes[selectedTheme].BackgroundColor
  26. Frame.BorderSizePixel = 0
  27. Frame.BackgroundTransparency = 0.1
  28. Frame.ClipsDescendants = true
  29. Frame.Active = true
  30. Frame.Draggable = true
  31.  
  32. local UICorner = Instance.new("UICorner", Frame)
  33. UICorner.CornerRadius = UDim.new(0, 15)
  34.  
  35. local TitleLabel = Instance.new("TextLabel", Frame)
  36. TitleLabel.Size = UDim2.new(1, 0, 0, 40)
  37. TitleLabel.BackgroundTransparency = 1
  38. TitleLabel.Text = "FLING GUI"
  39. TitleLabel.TextColor3 = Themes[selectedTheme].TitleColor
  40. TitleLabel.TextScaled = true
  41. TitleLabel.Font = Enum.Font.GothamBold
  42.  
  43. local InfoLabel = Instance.new("TextLabel", Frame)
  44. InfoLabel.Size = UDim2.new(1, 0, 0, 25)
  45. InfoLabel.Position = UDim2.new(0, 0, 0, 50)
  46. InfoLabel.BackgroundTransparency = 1
  47. InfoLabel.Text = "RAT FLING"
  48. InfoLabel.TextColor3 = Themes[selectedTheme].TextColor
  49. InfoLabel.TextScaled = true
  50. InfoLabel.Font = Enum.Font.Gotham
  51.  
  52. local AuthorLabel = Instance.new("TextLabel", Frame)
  53. AuthorLabel.Size = UDim2.new(1, 0, 0, 20)
  54. AuthorLabel.Position = UDim2.new(0, 0, 0, 80)
  55. AuthorLabel.BackgroundTransparency = 1
  56. AuthorLabel.Text = "UI: Zykenxar"
  57. AuthorLabel.TextColor3 = Themes[selectedTheme].TextColor
  58. AuthorLabel.TextScaled = true
  59. AuthorLabel.Font = Enum.Font.Gotham
  60.  
  61. game:GetService("StarterGui"):SetCore("SendNotification", {
  62. Title = "Fling All Executed",
  63. Text = "Made by: Zykenxar (vuno)",
  64. Icon = "rbxassetid://117850197706355",
  65. Duration = 5
  66. })
  67.  
  68. local FlingButton = Instance.new("TextButton", Frame)
  69. FlingButton.Size = UDim2.new(0.8, 0, 0, 40)
  70. FlingButton.Position = UDim2.new(0.1, 0, 0.7, 0)
  71. FlingButton.BackgroundColor3 = Themes[selectedTheme].ButtonColor
  72. FlingButton.Text = "FLING ALL"
  73. FlingButton.TextColor3 = Themes[selectedTheme].TitleColor
  74. FlingButton.TextScaled = true
  75. FlingButton.Font = Enum.Font.GothamBold
  76.  
  77. local FlingButtonCorner = Instance.new("UICorner", FlingButton)
  78. FlingButtonCorner.CornerRadius = UDim.new(0, 10)
  79.  
  80. FlingButton.MouseButton1Click:Connect(function()
  81. local Targets = {"All"}
  82.  
  83. local Players = game:GetService("Players")
  84. local Player = Players.LocalPlayer
  85.  
  86. local AllBool = false
  87.  
  88. local GetPlayer = function(Name)
  89. Name = Name:lower()
  90. if Name == "all" or Name == "others" then
  91. AllBool = true
  92. return
  93. elseif Name == "random" then
  94. local GetPlayers = Players:GetPlayers()
  95. if table.find(GetPlayers,Player) then table.remove(GetPlayers,table.find(GetPlayers,Player)) end
  96. return GetPlayers[math.random(#GetPlayers)]
  97. elseif Name ~= "random" and Name ~= "all" and Name ~= "others" then
  98. for _,x in next, Players:GetPlayers() do
  99. if x ~= Player then
  100. if x.Name:lower():match("^"..Name) then
  101. return x;
  102. elseif x.DisplayName:lower():match("^"..Name) then
  103. return x;
  104. end
  105. end
  106. end
  107. else
  108. return
  109. end
  110. end
  111.  
  112. local Message = function(_Title, _Text, Time)
  113. game:GetService("StarterGui"):SetCore("SendNotification", {Title = _Title, Text = _Text, Duration = Time})
  114. end
  115.  
  116. local SkidFling = function(TargetPlayer)
  117. if TargetPlayer == Player then return end
  118.  
  119. local Character = Player.Character
  120. local Humanoid = Character and Character:FindFirstChildOfClass("Humanoid")
  121. local RootPart = Humanoid and Humanoid.RootPart
  122.  
  123. local TCharacter = TargetPlayer.Character
  124. local THumanoid
  125. local TRootPart
  126. local THead
  127. local Accessory
  128. local Handle
  129.  
  130. if TCharacter:FindFirstChildOfClass("Humanoid") then
  131. THumanoid = TCharacter:FindFirstChildOfClass("Humanoid")
  132. end
  133. if THumanoid and THumanoid.RootPart then
  134. TRootPart = THumanoid.RootPart
  135. end
  136. if TCharacter:FindFirstChild("Head") then
  137. THead = TCharacter.Head
  138. end
  139. if TCharacter:FindFirstChildOfClass("Accessory") then
  140. Accessory = TCharacter:FindFirstChildOfClass("Accessory")
  141. end
  142. if Accessory and Accessory:FindFirstChild("Handle") then
  143. Handle = Accessory.Handle
  144. end
  145.  
  146. if Character and Humanoid and RootPart then
  147. if RootPart.Velocity.Magnitude < 50 then
  148. getgenv().OldPos = RootPart.CFrame
  149. end
  150. if THumanoid and THumanoid.Sit and not AllBool then
  151. end
  152. if THead then
  153. workspace.CurrentCamera.CameraSubject = THead
  154. elseif not THead and Handle then
  155. workspace.CurrentCamera.CameraSubject = Handle
  156. elseif THumanoid and TRootPart then
  157. workspace.CurrentCamera.CameraSubject = THumanoid
  158. end
  159. if not TCharacter:FindFirstChildWhichIsA("BasePart") then
  160. return
  161. end
  162.  
  163. local FPos = function(BasePart, Pos, Ang)
  164. RootPart.CFrame = CFrame.new(BasePart.Position) * Pos * Ang
  165. Character:SetPrimaryPartCFrame(CFrame.new(BasePart.Position) * Pos * Ang)
  166. RootPart.Velocity = Vector3.new(9e7, 9e7 * 10, 9e7)
  167. RootPart.RotVelocity = Vector3.new(9e8, 9e8, 9e8)
  168. end
  169.  
  170. local SFBasePart = function(BasePart)
  171. local TimeToWait = 2
  172. local Time = tick()
  173. local Angle = 0
  174.  
  175. repeat
  176. if RootPart and THumanoid then
  177. if BasePart.Velocity.Magnitude < 50 then
  178. Angle = Angle + 100
  179.  
  180. FPos(BasePart, CFrame.new(0, 1.5, 0) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle),0 ,0))
  181. task.wait()
  182.  
  183. FPos(BasePart, CFrame.new(0, -1.5, 0) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle), 0, 0))
  184. task.wait()
  185.  
  186. FPos(BasePart, CFrame.new(2.25, 1.5, -2.25) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle), 0, 0))
  187. task.wait()
  188.  
  189. FPos(BasePart, CFrame.new(-2.25, -1.5, 2.25) + THumanoid.MoveDirection * BasePart.Velocity.Magnitude / 1.25, CFrame.Angles(math.rad(Angle), 0, 0))
  190. task.wait()
  191.  
  192. FPos(BasePart, CFrame.new(0, 1.5, 0) + THumanoid.MoveDirection,CFrame.Angles(math.rad(Angle), 0, 0))
  193. task.wait()
  194.  
  195. FPos(BasePart, CFrame.new(0, -1.5, 0) + THumanoid.MoveDirection,CFrame.Angles(math.rad(Angle), 0, 0))
  196. task.wait()
  197. else
  198. FPos(BasePart, CFrame.new(0, 1.5, THumanoid.WalkSpeed), CFrame.Angles(math.rad(90), 0, 0))
  199. task.wait()
  200.  
  201. FPos(BasePart, CFrame.new(0, -1.5, -THumanoid.WalkSpeed), CFrame.Angles(0, 0, 0))
  202. task.wait()
  203.  
  204. FPos(BasePart, CFrame.new(0, 1.5, THumanoid.WalkSpeed), CFrame.Angles(math.rad(90), 0, 0))
  205. task.wait()
  206.  
  207. FPos(BasePart, CFrame.new(0, 1.5, TRootPart.Velocity.Magnitude / 1.25), CFrame.Angles(math.rad(90), 0, 0))
  208. task.wait()
  209.  
  210. FPos(BasePart, CFrame.new(0, -1.5, -TRootPart.Velocity.Magnitude / 1.25), CFrame.Angles(0, 0, 0))
  211. task.wait()
  212.  
  213. FPos(BasePart, CFrame.new(0, 1.5, TRootPart.Velocity.Magnitude / 1.25), CFrame.Angles(math.rad(90), 0, 0))
  214. task.wait()
  215.  
  216. FPos(BasePart, CFrame.new(0, -1.5, 0), CFrame.Angles(math.rad(90), 0, 0))
  217. task.wait()
  218.  
  219. FPos(BasePart, CFrame.new(0, -1.5, 0), CFrame.Angles(0, 0, 0))
  220. task.wait()
  221.  
  222. FPos(BasePart, CFrame.new(0, -1.5 ,0), CFrame.Angles(math.rad(-90), 0, 0))
  223. task.wait()
  224.  
  225. FPos(BasePart, CFrame.new(0, -1.5, 0), CFrame.Angles(0, 0, 0))
  226. task.wait()
  227. end
  228. else
  229. break
  230. end
  231. until BasePart.Velocity.Magnitude > 500 or BasePart.Parent ~= TargetPlayer.Character or TargetPlayer.Parent ~= Players or not TargetPlayer.Character == TCharacter or THumanoid.Sit or Humanoid.Health <= 0 or tick() > Time + TimeToWait
  232. end
  233.  
  234. workspace.FallenPartsDestroyHeight = 0/0
  235.  
  236. local BV = Instance.new("BodyVelocity")
  237. BV.Name = "EpixVel"
  238. BV.Parent = RootPart
  239. BV.Velocity = Vector3.new(9e8, 9e8, 9e8)
  240. BV.MaxForce = Vector3.new(1/0, 1/0, 1/0)
  241.  
  242. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
  243.  
  244. if TRootPart and THead then
  245. if (TRootPart.CFrame.p - THead.CFrame.p).Magnitude > 5 then
  246. SFBasePart(THead)
  247. else
  248. SFBasePart(TRootPart)
  249. end
  250. elseif TRootPart and not THead then
  251. SFBasePart(TRootPart)
  252. elseif not TRootPart and THead then
  253. SFBasePart(THead)
  254. elseif not TRootPart and not THead and Accessory and Handle then
  255. SFBasePart(Handle)
  256. else
  257. return Message("Error Occurred", "Target is missing everything", 5)
  258. end
  259.  
  260. BV:Destroy()
  261. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true)
  262. workspace.CurrentCamera.CameraSubject = Humanoid
  263.  
  264. repeat
  265. RootPart.CFrame = getgenv().OldPos * CFrame.new(0, .5, 0)
  266. Character:SetPrimaryPartCFrame(getgenv().OldPos * CFrame.new(0, .5, 0))
  267. Humanoid:ChangeState("GettingUp")
  268. table.foreach(Character:GetChildren(), function(_, x)
  269. if x:IsA("BasePart") then
  270. x.Velocity, x.RotVelocity = Vector3.new(), Vector3.new()
  271. end
  272. end)
  273. task.wait()
  274. until (RootPart.Position - getgenv().OldPos.p).Magnitude < 25
  275. workspace.FallenPartsDestroyHeight = getgenv().FPDH
  276. else
  277. return Message("Error Occurred", "Random error", 5)
  278. end
  279. end
  280.  
  281. if not Welcome then Message("Moded By Zykenxar", "Enjoy!", 5) end
  282. getgenv().Welcome = true
  283. if Targets[1] then for _,x in next, Targets do GetPlayer(x) end else return end
  284.  
  285. if AllBool then
  286. for _,x in next, Players:GetPlayers() do
  287. if x ~= Player then
  288. SkidFling(x)
  289. end
  290. end
  291. end
  292.  
  293. for _,x in next, Targets do
  294. if GetPlayer(x) and GetPlayer(x) ~= Player then
  295. if GetPlayer(x).UserId ~= 1414978355 then
  296. local TPlayer = GetPlayer(x)
  297. if TPlayer then
  298. SkidFling(TPlayer)
  299. end
  300. else
  301. Message("Error Occurred", "This user is whitelisted! (Owner)", 5)
  302. end
  303. elseif not GetPlayer(x) and not AllBool then
  304. Message("Error Occurred", "Username Invalid", 5)
  305. end
  306. end
  307. for _,x in next, Targets do
  308. if GetPlayer(x) and GetPlayer(x) ~= Player then
  309. if GetPlayer(x).UserId ~= 1414978355 then
  310. local TPlayer = GetPlayer(x)
  311. if TPlayer then
  312. SkidFling(TPlayer)
  313. end
  314. end
  315. end
  316. end
  317. end)
Add Comment
Please, Sign In to add comment