Advertisement
BaconhairGamer

Fling Chaos Shop Custom UI

Nov 19th, 2022
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.55 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Hub = Instance.new("ScreenGui")
  7. local BG = Instance.new("ImageLabel")
  8. local Close = Instance.new("TextButton")
  9. local UICorner = Instance.new("UICorner")
  10. local Minimize = Instance.new("TextButton")
  11. local UICorner_2 = Instance.new("UICorner")
  12. local Name = Instance.new("TextLabel")
  13. local UICorner_3 = Instance.new("UICorner")
  14. local Maximize = Instance.new("TextButton")
  15. local UICorner_4 = Instance.new("UICorner")
  16. local Tab = Instance.new("TextButton")
  17. local UICorner_5 = Instance.new("UICorner")
  18. local FirstFrame = Instance.new("Frame")
  19. local UICorner_6 = Instance.new("UICorner")
  20. local ScrollingFrame = Instance.new("ScrollingFrame")
  21. local UICorner_7 = Instance.new("UICorner")
  22. local Fling = Instance.new("TextButton")
  23. local UICorner_8 = Instance.new("UICorner")
  24. local OpenUI = Instance.new("TextButton")
  25.  
  26. --Properties:
  27. local UserInputService = game:GetService("UserInputService")
  28. local runService = (game:GetService("RunService"));
  29.  
  30. local gui = BG
  31.  
  32. local dragging
  33. local dragInput
  34. local dragStart
  35. local startPos
  36.  
  37. function Lerp(a, b, m)
  38. return a + (b - a) * m
  39. end;
  40.  
  41. local lastMousePos
  42. local lastGoalPos
  43. local DRAG_SPEED = (8); -- // The speed of the UI darg.
  44. function Update(dt)
  45. if not (startPos) then return end;
  46. if not (dragging) and (lastGoalPos) then
  47. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  48. return
  49. end;
  50.  
  51. local delta = (lastMousePos - UserInputService:GetMouseLocation())
  52. local xGoal = (startPos.X.Offset - delta.X);
  53. local yGoal = (startPos.Y.Offset - delta.Y);
  54. lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  55. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  56. end;
  57.  
  58. gui.InputBegan:Connect(function(input)
  59. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  60. dragging = true
  61. dragStart = input.Position
  62. startPos = gui.Position
  63. lastMousePos = UserInputService:GetMouseLocation()
  64.  
  65. input.Changed:Connect(function()
  66. if input.UserInputState == Enum.UserInputState.End then
  67. dragging = false
  68. end
  69. end)
  70. end
  71. end)
  72.  
  73. gui.InputChanged:Connect(function(input)
  74. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  75. dragInput = input
  76. end
  77. end)
  78.  
  79. runService.Heartbeat:Connect(Update)
  80.  
  81. OpenUI.Visible = false
  82.  
  83. Minimize.MouseButton1Down:Connect(function()
  84. BG:TweenSize(
  85. UDim2.new(0, 385, 0, 38),
  86. "In",
  87. "Quad",
  88. 0.7,
  89. false
  90. )
  91. Tab.Visible = false
  92. end)
  93.  
  94.  
  95. Maximize.MouseButton1Down:Connect(function()
  96. BG:TweenSize(
  97. UDim2.new(0, 657, 0, 357),
  98. "Out",
  99. "Quad",
  100. 0.7,
  101. false
  102. )
  103. wait(0.7)
  104. Tab.Visible = true
  105. end)
  106.  
  107.  
  108. Close.MouseButton1Down:Connect(function()
  109. BG.Visible = false
  110. OpenUI.Visible = true
  111. end)
  112.  
  113.  
  114. OpenUI.MouseButton1Down:Connect(function()
  115. BG.Visible = true
  116. OpenUI.Visible = false
  117. end)
  118.  
  119. Tab.MouseButton1Down:Connect(function()
  120. FirstFrame.Visible = true
  121. end)
  122.  
  123. Fling.MouseButton1Down:Connect(function()
  124. spawn(function()
  125. local message = Instance.new("Message",workspace)
  126. message.Text = "Loaded press z to execute inviseble , press x to respawn)"
  127. wait(2)
  128. message:Destroy()
  129. end)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138. local mouse = game.Players.LocalPlayer:GetMouse()
  139.  
  140. local groot = nil
  141.  
  142. mouse.KeyDown:connect(function(k)
  143.  
  144. if k == "z" then
  145.  
  146.  
  147.  
  148. spawn(function()
  149. local message = Instance.new("Message",workspace)
  150. message.Text = "Fe Invisible Fling By Diemiers#4209 Loaded (wait 11 seconds to load)"
  151. wait(11)
  152. message:Destroy()
  153. end)
  154.  
  155.  
  156. local ch = game.Players.LocalPlayer.Character
  157. local prt=Instance.new("Model", workspace)
  158. local z1 = Instance.new("Part", prt)
  159. z1.Name="Torso"
  160. z1.CanCollide = false
  161. z1.Anchored = true
  162. local z2 =Instance.new("Part", prt)
  163. z2.Name="Head"
  164. z2.Anchored = true
  165. z2.CanCollide = false
  166. local z3 =Instance.new("Humanoid", prt)
  167. z3.Name="Humanoid"
  168. z1.Position = Vector3.new(0,9999,0)
  169. z2.Position = Vector3.new(0,9991,0)
  170. game.Players.LocalPlayer.Character=prt
  171. wait(5)
  172. game.Players.LocalPlayer.Character=ch
  173. wait(6)
  174.  
  175.  
  176. local plr = game.Players.LocalPlayer
  177. mouse = plr:GetMouse()
  178.  
  179. local Hum = Instance.new("Humanoid")
  180. Hum.Parent = game.Players.LocalPlayer.Character
  181.  
  182.  
  183. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  184.  
  185.  
  186. for i,v in pairs(plr.Character:GetChildren()) do
  187.  
  188. if v ~= root and v.Name ~= "Humanoid" then
  189.  
  190. v:Destroy()
  191.  
  192. end
  193.  
  194.  
  195. end
  196.  
  197. workspace.CurrentCamera.CameraSubject = root
  198.  
  199. local se = Instance.new("SelectionBox",root)
  200. se.Adornee = root
  201.  
  202.  
  203. game:GetService('RunService').Stepped:connect(function()
  204. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  205. end)
  206. game:GetService('RunService').RenderStepped:connect(function()
  207. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  208. end)
  209.  
  210.  
  211. power = 999999 -- change this to make it more or less powerful
  212.  
  213. power = power*10
  214.  
  215. ---
  216. wait(.1)
  217. local bambam = Instance.new("BodyThrust")
  218. bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  219. bambam.Force = Vector3.new(power,0,power)
  220. bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  221.  
  222.  
  223.  
  224.  
  225.  
  226. local plr = game.Players.LocalPlayer
  227. local torso = root
  228. local flying = true
  229. local deb = true
  230. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  231. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  232. local maxspeed = 120
  233. local speed = 15
  234.  
  235.  
  236. ---local bambam = Instance.new("BodyThrust")
  237. ---bambam.Parent = torso
  238. --bambam.Force = Vector3.new(9999999,0,9999999)
  239. --bambam.Location = torso.Position
  240.  
  241.  
  242. ---
  243. groot = root
  244.  
  245. function Fly()
  246. local bg = Instance.new("BodyGyro", torso)
  247. bg.P = 9e4
  248. bg.maxTorque = Vector3.new(0, 0, 0)
  249. bg.cframe = torso.CFrame
  250. local bv = Instance.new("BodyVelocity", torso)
  251. bv.velocity = Vector3.new(0,0,0)
  252. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  253. repeat wait()
  254.  
  255. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  256. speed = speed+.2
  257. if speed > maxspeed then
  258. speed = maxspeed
  259. end
  260. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  261. speed = speed-1
  262. if speed < 0 then
  263. speed = 0
  264. end
  265. end
  266. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  267. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  268. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  269. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  270. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  271. else
  272. bv.velocity = Vector3.new(0,0.1,0)
  273. end
  274.  
  275. until not flying
  276. ctrl = {f = 0, b = 0, l = 0, r = 0}
  277. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  278. speed = 0
  279. bg:Destroy()
  280. bv:Destroy()
  281.  
  282. end
  283. mouse.KeyDown:connect(function(key)
  284. if key:lower() == "e" then
  285. if flying then flying = false
  286. else
  287. flying = true
  288. Fly()
  289. end
  290. elseif key:lower() == "w" then
  291. ctrl.f = 1
  292. elseif key:lower() == "s" then
  293. ctrl.b = -1
  294. elseif key:lower() == "a" then
  295. ctrl.l = -1
  296. elseif key:lower() == "d" then
  297. ctrl.r = 1
  298. end
  299. end)
  300. mouse.KeyUp:connect(function(key)
  301. if key:lower() == "w" then
  302. ctrl.f = 0
  303. elseif key:lower() == "s" then
  304. ctrl.b = 0
  305. elseif key:lower() == "a" then
  306. ctrl.l = 0
  307. elseif key:lower() == "d" then
  308. ctrl.r = 0
  309. elseif key:lower() == "r" then
  310.  
  311. end
  312. end)
  313. Fly()
  314.  
  315.  
  316.  
  317. elseif k == "x" then
  318.  
  319.  
  320. spawn(function()
  321. local message = Instance.new("Message",workspace)
  322. message.Text = "Respawning dont spam"
  323. wait(1)
  324. message:Destroy()
  325. end)
  326.  
  327. local saved = groot.Position
  328.  
  329. local ch = game.Players.LocalPlayer.Character
  330. local prt=Instance.new("Model", workspace)
  331. local z1 = Instance.new("Part", prt)
  332. z1.Name="Torso"
  333. z1.CanCollide = false
  334. z1.Anchored = true
  335. local z2 =Instance.new("Part", prt)
  336. z2.Name="Head"
  337. z2.Anchored = true
  338. z2.CanCollide = false
  339. local z3 =Instance.new("Humanoid", prt)
  340. z3.Name="Humanoid"
  341. z1.Position = Vector3.new(0,9999,0)
  342. z2.Position = Vector3.new(0,9991,0)
  343. game.Players.LocalPlayer.Character=prt
  344. wait(5)
  345. game.Players.LocalPlayer.Character=ch
  346. local poop = nil
  347. repeat wait() poop = game.Players.LocalPlayer.Character:FindFirstChild("Head") until poop ~= nil
  348. wait(1)
  349. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(saved)
  350.  
  351. end
  352.  
  353.  
  354. end)
  355. end)
  356.  
  357.  
  358. Hub.Name = "Hub"
  359. Hub.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  360. Hub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  361.  
  362. BG.Name = "BG"
  363. BG.Parent = Hub
  364. BG.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  365. BG.BackgroundTransparency = 1.000
  366. BG.Position = UDim2.new(0.278911561, 0, 0.0376213491, 0)
  367. BG.Size = UDim2.new(0, 657, 0, 357)
  368. BG.Image = "http://www.roblox.com/asset/?id=11580582019"
  369.  
  370. Close.Name = "Close"
  371. Close.Parent = BG
  372. Close.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
  373. Close.BackgroundTransparency = 1.000
  374. Close.Position = UDim2.new(0.933028936, 0, 0.0388155282, 0)
  375. Close.Size = UDim2.new(0, 32, 0, 29)
  376. Close.Font = Enum.Font.Unknown
  377. Close.Text = "X"
  378. Close.Font = "Kalam"
  379. Close.TextColor3 = Color3.fromRGB(255, 255, 255)
  380. Close.TextScaled = true
  381. Close.TextSize = 14.000
  382. Close.TextWrapped = true
  383.  
  384. UICorner.CornerRadius = UDim.new(0, 20)
  385. UICorner.Parent = Close
  386.  
  387. Minimize.Name = "Minimize"
  388. Minimize.Parent = BG
  389. Minimize.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
  390. Minimize.BackgroundTransparency = 1.000
  391. Minimize.Position = UDim2.new(0.84322679, 0, 0.0388155282, 0)
  392. Minimize.Size = UDim2.new(0, 32, 0, 29)
  393. Minimize.Font = Enum.Font.Unknown
  394. Minimize.Text = "-"
  395. Minimize.Font = "Kalam"
  396. Minimize.TextColor3 = Color3.fromRGB(255, 255, 255)
  397. Minimize.TextScaled = true
  398. Minimize.TextSize = 14.000
  399. Minimize.TextWrapped = true
  400.  
  401. UICorner_2.CornerRadius = UDim.new(0, 20)
  402. UICorner_2.Parent = Minimize
  403.  
  404. Name.Name = "Name"
  405. Name.Parent = BG
  406. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  407. Name.BackgroundTransparency = 1.000
  408. Name.Position = UDim2.new(-0,1, 0, 0.0212084819, 0)
  409. Name.Size = UDim2.new(0, 164, 0, 40)
  410. Name.Font = Enum.Font.Unknown
  411. Name.Text = "Invisible Fling"
  412. Name.Font = "Kalam"
  413. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  414. Name.TextScaled = true
  415. Name.TextSize = 14.000
  416. Name.TextWrapped = true
  417.  
  418. UICorner_3.CornerRadius = UDim.new(0, 5)
  419. UICorner_3.Parent = BG
  420.  
  421. Maximize.Name = "Maximize"
  422. Maximize.Parent = BG
  423. Maximize.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
  424. Maximize.BackgroundTransparency = 1.000
  425. Maximize.Position = UDim2.new(0.891933024, 0, 0.0360144079, 0)
  426. Maximize.Size = UDim2.new(0, 32, 0, 29)
  427. Maximize.Font = Enum.Font.Unknown
  428. Maximize.Text = "M"
  429. Maximize.Font = "Kalam"
  430. Maximize.TextColor3 = Color3.fromRGB(255, 255, 255)
  431. Maximize.TextScaled = true
  432. Maximize.TextSize = 14.000
  433. Maximize.TextWrapped = true
  434.  
  435. UICorner_4.CornerRadius = UDim.new(0, 20)
  436. UICorner_4.Parent = Maximize
  437.  
  438. Tab.Name = "Tab"
  439. Tab.Parent = BG
  440. Tab.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  441. Tab.BackgroundTransparency = 0.600
  442. Tab.Position = UDim2.new(0.0140403509, 0, 0.164032117, 0)
  443. Tab.Size = UDim2.new(0, 164, 0, 40)
  444. Tab.Font = Enum.Font.Unknown
  445. Tab.Text = "FlingTab"
  446. Tab.Font = "Kalam"
  447. Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
  448. Tab.TextScaled = true
  449. Tab.TextSize = 14.000
  450. Tab.TextWrapped = true
  451.  
  452. UICorner_5.Parent = Tab
  453.  
  454. FirstFrame.Name = "FirstFrame"
  455. FirstFrame.Parent = Tab
  456. FirstFrame.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
  457. FirstFrame.Position = UDim2.new(1.06707335, 0, -0.0249998085, 0)
  458. FirstFrame.Size = UDim2.new(0, 463, 0, 292)
  459. FirstFrame.Visible = false
  460.  
  461. UICorner_6.Parent = FirstFrame
  462.  
  463. ScrollingFrame.Parent = FirstFrame
  464. ScrollingFrame.Active = true
  465. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  466. ScrollingFrame.BackgroundTransparency = 1.000
  467. ScrollingFrame.Size = UDim2.new(0, 463, 0, 292)
  468.  
  469. UICorner_7.Parent = ScrollingFrame
  470.  
  471. Fling.Name = "Fling"
  472. Fling.Parent = ScrollingFrame
  473. Fling.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  474. Fling.BackgroundTransparency = 1.000
  475. Fling.Position = UDim2.new(0.022107631, 0, 0.0690249205, 0)
  476. Fling.Size = UDim2.new(0, 117, 0, 41)
  477. Fling.Font = Enum.Font.Unknown
  478. Fling.Text = "Fling"
  479. Fling.Font = "Kalam"
  480. Fling.TextColor3 = Color3.fromRGB(255, 255, 255)
  481. Fling.TextScaled = true
  482. Fling.TextSize = 14.000
  483. Fling.TextWrapped = true
  484.  
  485. UICorner_8.Parent = Fling
  486.  
  487. OpenUI.Name = "OpenUI"
  488. OpenUI.Parent = Hub
  489. OpenUI.BackgroundColor3 = Color3.fromRGB(85, 85, 85)
  490. OpenUI.Position = UDim2.new(0, 0, 0.74878639, 0)
  491. OpenUI.Size = UDim2.new(0, 200, 0, 50)
  492. OpenUI.Font = Enum.Font.Unknown
  493. OpenUI.Text = "Open UI"
  494. OpenUI.Font = "Kalam"
  495. OpenUI.TextColor3 = Color3.fromRGB(255, 255, 255)
  496. OpenUI.TextScaled = true
  497. OpenUI.TextSize = 14.000
  498. OpenUI.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement