fling script roblox - Pastebin.com (2024)

  1. local ultimateFling = Instance.new("ScreenGui")

  2. local drag = Instance.new("Frame")

  3. local UICorner = Instance.new("UICorner")

  4. local windowNameFrame = Instance.new("Frame")

  5. local UICorner_2 = Instance.new("UICorner")

  6. local windowNameLabel = Instance.new("TextLabel")

  7. local closeButton = Instance.new("TextButton")

  8. local mainFrame = Instance.new("Frame")

  9. local UICorner_3 = Instance.new("UICorner")

  10. local buttonsFrame = Instance.new("Frame")

  11. local toggleButton = Instance.new("TextButton")

  12. local UICorner_4 = Instance.new("UICorner")

  13. local rotSpeedLabel = Instance.new("TextLabel")

  14. local UICorner_5 = Instance.new("UICorner")

  15. local rotSpeedTextbox = Instance.new("TextBox")

  16. local flySpeedLabel = Instance.new("TextLabel")

  17. local UICorner_6 = Instance.new("UICorner")

  18. local flySpeedTextbox = Instance.new("TextBox")

  19. local UICorner_7 = Instance.new("UICorner")

  20. local notificationsFrame = Instance.new("Frame")

  21. local UIListLayout = Instance.new("UIListLayout")

  22. local notificationTemplate = Instance.new("TextLabel")

  23. local teleportersFrame = Instance.new("Frame")

  24. local teleportingLabel = Instance.new("TextLabel")

  25. local UICorner_8 = Instance.new("UICorner")

  26. local tpingTextbox = Instance.new("TextBox")

  27. ultimateFling.Name = "ultimateFling"

  28. ultimateFling.Parent = game:GetService("CoreGui")

  29. ultimateFling.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

  30. ultimateFling.ResetOnSpawn = false

  31. drag.Name = "drag"

  32. drag.Parent = ultimateFling

  33. drag.Active = true

  34. drag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  35. drag.BackgroundTransparency = 1.000

  36. drag.Draggable = true

  37. drag.Position = UDim2.new(0.5, -150, 0.5, -67)

  38. drag.Selectable = true

  39. drag.Size = UDim2.new(0, 300, 0, 135)

  40. UICorner.Parent = drag

  41. windowNameFrame.Name = "windowNameFrame"

  42. windowNameFrame.Parent = drag

  43. windowNameFrame.BackgroundColor3 = Color3.fromRGB(64, 64, 64)

  44. windowNameFrame.Size = UDim2.new(1, 0, 0, 30)

  45. UICorner_2.Parent = windowNameFrame

  46. windowNameLabel.Name = "windowNameLabel"

  47. windowNameLabel.Parent = windowNameFrame

  48. windowNameLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  49. windowNameLabel.BackgroundTransparency = 1.000

  50. windowNameLabel.BorderSizePixel = 0

  51. windowNameLabel.Size = UDim2.new(1, 0, 0, 20)

  52. windowNameLabel.Font = Enum.Font.SourceSans

  53. windowNameLabel.Text = "Ultimate Fling"

  54. windowNameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  55. windowNameLabel.TextSize = 20.000

  56. closeButton.Name = "closeButton"

  57. closeButton.Parent = windowNameLabel

  58. closeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  59. closeButton.BackgroundTransparency = 1.000

  60. closeButton.BorderSizePixel = 0

  61. closeButton.Position = UDim2.new(1, -20, 0, 0)

  62. closeButton.Size = UDim2.new(0, 20, 0, 20)

  63. closeButton.Font = Enum.Font.SourceSans

  64. closeButton.Text = "X"

  65. closeButton.TextColor3 = Color3.fromRGB(255, 0, 0)

  66. closeButton.TextSize = 20.000

  67. mainFrame.Name = "mainFrame"

  68. mainFrame.Parent = drag

  69. mainFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)

  70. mainFrame.Position = UDim2.new(0, 0, 0, 20)

  71. mainFrame.Size = UDim2.new(1, 0, 1, -20)

  72. UICorner_3.Parent = mainFrame

  73. buttonsFrame.Name = "buttonsFrame"

  74. buttonsFrame.Parent = mainFrame

  75. buttonsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

  76. buttonsFrame.BackgroundTransparency = 0.500

  77. buttonsFrame.Size = UDim2.new(0, 110, 1, 0)

  78. toggleButton.Name = "toggleButton"

  79. toggleButton.Parent = buttonsFrame

  80. toggleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  81. toggleButton.BackgroundTransparency = 0.800

  82. toggleButton.BorderSizePixel = 0

  83. toggleButton.Position = UDim2.new(0, 5, 0, 5)

  84. toggleButton.Size = UDim2.new(0, 100, 0, 25)

  85. toggleButton.Font = Enum.Font.SourceSans

  86. toggleButton.Text = "Start fling"

  87. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)

  88. toggleButton.TextSize = 20.000

  89. UICorner_4.Parent = toggleButton

  90. rotSpeedLabel.Name = "rotSpeedLabel"

  91. rotSpeedLabel.Parent = buttonsFrame

  92. rotSpeedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  93. rotSpeedLabel.BackgroundTransparency = 0.800

  94. rotSpeedLabel.Position = UDim2.new(0, 5, 0, 35)

  95. rotSpeedLabel.Size = UDim2.new(0, 100, 0, 35)

  96. rotSpeedLabel.Font = Enum.Font.SourceSans

  97. rotSpeedLabel.Text = "RotSpeed"

  98. rotSpeedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  99. rotSpeedLabel.TextSize = 14.000

  100. rotSpeedLabel.TextYAlignment = Enum.TextYAlignment.Top

  101. UICorner_5.Parent = rotSpeedLabel

  102. rotSpeedTextbox.Name = "rotSpeedTextbox"

  103. rotSpeedTextbox.Parent = rotSpeedLabel

  104. rotSpeedTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  105. rotSpeedTextbox.BackgroundTransparency = 1.000

  106. rotSpeedTextbox.Position = UDim2.new(0, 0, 0, 13)

  107. rotSpeedTextbox.Size = UDim2.new(1, 0, 1, -13)

  108. rotSpeedTextbox.ClearTextOnFocus = false

  109. rotSpeedTextbox.Font = Enum.Font.SourceSans

  110. rotSpeedTextbox.Text = "10000"

  111. rotSpeedTextbox.TextColor3 = Color3.fromRGB(0, 255, 0)

  112. rotSpeedTextbox.TextSize = 16.000

  113. flySpeedLabel.Name = "flySpeedLabel"

  114. flySpeedLabel.Parent = buttonsFrame

  115. flySpeedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  116. flySpeedLabel.BackgroundTransparency = 0.800

  117. flySpeedLabel.Position = UDim2.new(0, 5, 0, 75)

  118. flySpeedLabel.Size = UDim2.new(0, 100, 0, 35)

  119. flySpeedLabel.Font = Enum.Font.SourceSans

  120. flySpeedLabel.Text = "FlySpeed"

  121. flySpeedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  122. flySpeedLabel.TextSize = 14.000

  123. flySpeedLabel.TextYAlignment = Enum.TextYAlignment.Top

  124. UICorner_6.Parent = flySpeedLabel

  125. flySpeedTextbox.Name = "flySpeedTextbox"

  126. flySpeedTextbox.Parent = flySpeedLabel

  127. flySpeedTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  128. flySpeedTextbox.BackgroundTransparency = 1.000

  129. flySpeedTextbox.Position = UDim2.new(0, 0, 0, 13)

  130. flySpeedTextbox.Size = UDim2.new(1, 0, 1, -13)

  131. flySpeedTextbox.ClearTextOnFocus = false

  132. flySpeedTextbox.Font = Enum.Font.SourceSans

  133. flySpeedTextbox.Text = "1"

  134. flySpeedTextbox.TextColor3 = Color3.fromRGB(0, 255, 0)

  135. flySpeedTextbox.TextSize = 16.000

  136. UICorner_7.Parent = buttonsFrame

  137. notificationsFrame.Name = "notificationsFrame"

  138. notificationsFrame.Parent = mainFrame

  139. notificationsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  140. notificationsFrame.BackgroundTransparency = 1.000

  141. notificationsFrame.ClipsDescendants = true

  142. notificationsFrame.Position = UDim2.new(0, 110, 0, 45)

  143. notificationsFrame.Size = UDim2.new(1, -110, 1, -45)

  144. UIListLayout.Parent = notificationsFrame

  145. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder

  146. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom

  147. notificationTemplate.Name = "notificationTemplate"

  148. notificationTemplate.Parent = notificationsFrame

  149. notificationTemplate.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  150. notificationTemplate.BackgroundTransparency = 1.000

  151. notificationTemplate.ClipsDescendants = true

  152. notificationTemplate.Size = UDim2.new(1, 0, 0, 20)

  153. notificationTemplate.Visible = false

  154. notificationTemplate.Font = Enum.Font.SourceSans

  155. notificationTemplate.Text = ""

  156. notificationTemplate.TextColor3 = Color3.fromRGB(255, 255, 255)

  157. notificationTemplate.TextSize = 19.000

  158. notificationTemplate.TextWrapped = true

  159. teleportersFrame.Name = "teleportersFrame"

  160. teleportersFrame.Parent = mainFrame

  161. teleportersFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  162. teleportersFrame.BackgroundTransparency = 1.000

  163. teleportersFrame.ClipsDescendants = true

  164. teleportersFrame.Position = UDim2.new(0, 110, 0, 0)

  165. teleportersFrame.Size = UDim2.new(1, -110, 0, 45)

  166. teleportingLabel.Name = "teleportingLabel"

  167. teleportingLabel.Parent = teleportersFrame

  168. teleportingLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  169. teleportingLabel.BackgroundTransparency = 0.800

  170. teleportingLabel.Position = UDim2.new(0, 5, 0, 5)

  171. teleportingLabel.Size = UDim2.new(1, -10, 1, -10)

  172. teleportingLabel.Font = Enum.Font.SourceSans

  173. teleportingLabel.Text = "tping to players delay (0 = disable)"

  174. teleportingLabel.TextColor3 = Color3.fromRGB(255, 255, 255)

  175. teleportingLabel.TextSize = 14.000

  176. teleportingLabel.TextYAlignment = Enum.TextYAlignment.Top

  177. UICorner_8.Parent = teleportingLabel

  178. tpingTextbox.Name = "tpingTextbox"

  179. tpingTextbox.Parent = teleportingLabel

  180. tpingTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  181. tpingTextbox.BackgroundTransparency = 1.000

  182. tpingTextbox.Position = UDim2.new(0, 0, 0, 13)

  183. tpingTextbox.Size = UDim2.new(1, 0, 1, -13)

  184. tpingTextbox.ClearTextOnFocus = false

  185. tpingTextbox.Font = Enum.Font.SourceSans

  186. tpingTextbox.Text = "0"

  187. tpingTextbox.TextColor3 = Color3.fromRGB(0, 255, 0)

  188. tpingTextbox.TextSize = 16.000

  189. local function align(Part0, Part1)

  190. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)

  191. local att1 = Instance.new("Attachment")

  192. att1.Orientation = Vector3.new(0, 0, 0)

  193. att1.Position = Vector3.new(0, 0, 0)

  194. att1.Archivable = true

  195. local att0 = att1:Clone()

  196. local ap = Instance.new("AlignPosition", att0)

  197. ap.ApplyAtCenterOfMass = true

  198. ap.MaxForce = 9e9

  199. ap.MaxVelocity = 9e9

  200. ap.ReactionForceEnabled = false

  201. ap.Responsiveness = 200

  202. ap.RigidityEnabled = false

  203. ap.Attachment1 = att1

  204. ap.Attachment0 = att0

  205. att1.Parent = Part1

  206. att0.Parent = Part0

  207. end

  208. local rs = game:GetService("RunService")

  209. local function notify(msg)

  210. spawn(function()

  211. local label = notificationTemplate:Clone()

  212. label.Text = msg

  213. label.Parent = notificationsFrame

  214. label.Size = UDim2.new(1, 0, 0, 0)

  215. label.Visible = true

  216. local siz = 0

  217. while rs.Stepped:Wait() and label and label.Parent and (siz < 20) do

  218. siz += 1

  219. label.Size = UDim2.new(1, 0, 0, siz)

  220. end

  221. if label and label.Parent then

  222. wait(15)

  223. while rs.Stepped:Wait() and label and label.Parent and (label.TextTransparency < 1) do

  224. label.TextTransparency += 0.1

  225. end

  226. if label and label.Parent then

  227. label:Destroy()

  228. end

  229. end

  230. end)

  231. end

  232. local plrs = game:GetService("Players")

  233. local lp = plrs.LocalPlayer

  234. local mouse = lp:GetMouse()

  235. local ws = game:GetService("Workspace")

  236. local c = nil

  237. local function resReq()

  238. local nm = Instance.new("Model")

  239. local nh = Instance.new("Humanoid", nm)

  240. nh.Health = 100

  241. lp.Character = nm

  242. nh.Health = 0

  243. nh:Destroy()

  244. nm:Destroy()

  245. end

  246. local parts = {}

  247. ws.DescendantRemoving:Connect(function(des)

  248. if table.find(parts, des) then

  249. local desn = des.Name

  250. wait()

  251. if c and c.Parent then

  252. notify("lost part: " .. desn)

  253. end

  254. end

  255. end)

  256. toggleButton.MouseButton1Click:Connect(function()

  257. if c and c.Parent then

  258. resReq()

  259. lp.Character = c

  260. notify("attempting to respawn...")

  261. else

  262. notify("Loading...")

  263. c = lp.Character

  264. if not (c and c.Parent) then

  265. notify("error: character not found")

  266. return nil

  267. end

  268. local hum = c:FindFirstChildOfClass("Humanoid")

  269. if not (hum and hum.Parent) then

  270. notify("error: humanoid not found")

  271. return nil

  272. end

  273. if hum.Health == 0 then

  274. notify("error: humanoid health 0")

  275. return nil

  276. end

  277. resReq()

  278. lp.Character = c

  279. wait(5.1)

  280. if not (c and c.Parent) then

  281. notify("error: character removed")

  282. return nil

  283. end

  284. if not (hum and hum.Parent) then

  285. notify("error: humanoid removed")

  286. return nil

  287. end

  288. if hum.Health == 0 then

  289. notify("error: humanoid died")

  290. return nil

  291. end

  292. c:BreakJoints()

  293. hum.Health = 0

  294. wait()

  295. if not (c and c.Parent) then

  296. notify("error: character removed")

  297. return nil

  298. end

  299. parts = {}

  300. for i, v in pairs(c:GetDescendants()) do

  301. if v and v.Parent and v:IsA("BasePart") then

  302. if v.CanCollide then

  303. table.insert(parts, v)

  304. else

  305. v.Velocity = Vector3.new(0, -1000, 0)

  306. end

  307. end

  308. end

  309. local hrp = Instance.new("Part", c)

  310. hrp.Name = "hrp"

  311. hrp.Anchored = true

  312. hrp.Transparency = 1

  313. pcall(function()

  314. hrp.CFrame = parts[1].CFrame

  315. end)

  316. ws.CurrentCamera.CameraSubject = hrp

  317. for i, v in pairs(parts) do

  318. if v and v.Parent then

  319. align(v, hrp)

  320. end

  321. end

  322. spawn(function()

  323. local currentp = nil

  324. spawn(function()

  325. while rs.Stepped:Wait() and c and c.Parent and hrp and hrp.Parent do

  326. if currentp and currentp.Parent then

  327. local c1 = currentp.Character

  328. if c1 and c1.Parent then

  329. local hed1 = c1:FindFirstChild("Head") or c1:FindFirstChild("Torso") or c1:FindFirstChild("HumanoidRootPart") or c1:FindFirstChildWhichIsA("BasePart")

  330. if hed1 then

  331. hrp.CFrame = hed1.CFrame

  332. end

  333. end

  334. end

  335. end

  336. end)

  337. while rs.Heartbeat:Wait() and c and c.Parent and hrp and hrp.Parent do

  338. local delay = tonumber(tpingTextbox.Text)

  339. if (not delay) or (delay < 0) then

  340. delay = 0

  341. end

  342. if delay == 0 then

  343. currentp = false

  344. else

  345. wait(delay)

  346. delay = tonumber(tpingTextbox.Text)

  347. if (not delay) or (delay < 0) then

  348. delay = 0

  349. end

  350. if c and c.Parent and hrp and hrp.Parent and (delay ~= 0) then

  351. local getp = plrs:GetPlayers()

  352. local i1 = false

  353. for i, v in pairs(getp) do

  354. if (v == currentp) and (v ~= lp) then

  355. i1 = i

  356. end

  357. end

  358. if (not i1) then

  359. i1 = 1

  360. end

  361. local function nextp()

  362. if i1 == #getp then

  363. i1 = 1

  364. else

  365. i1 += 1

  366. end

  367. currentp = getp[i1]

  368. end

  369. local c1 = nil

  370. while wait() and not (c1 and c1.Parent) do

  371. nextp()

  372. if currentp == lp then

  373. nextp()

  374. end

  375. c1 = currentp.Character

  376. end

  377. end

  378. end

  379. end

  380. end)

  381. spawn(function()

  382. while c and c.Parent and rs.Heartbeat:Wait() do

  383. for i, v in pairs(parts) do

  384. if v and v.Parent then

  385. v.Velocity = Vector3.new(0, -25.05, 0)

  386. local s = tonumber(rotSpeedTextbox.Text)

  387. v.RotVelocity = Vector3.new(s, s, s)

  388. end

  389. end

  390. end

  391. end)

  392. spawn(function()

  393. while rs.Stepped:Wait() and c and c.Parent do

  394. for i, v in pairs(parts) do

  395. if v and v.Parent then

  396. v.CanCollide = false

  397. end

  398. end

  399. end

  400. end)

  401. spawn(function()

  402. local ctrlf = {

  403. ["w"] = false,

  404. ["a"] = false,

  405. ["s"] = false,

  406. ["d"] = false

  407. }

  408. mouse.KeyDown:Connect(function(key)

  409. key = key:lower()

  410. if ctrlf[key] ~= nil then

  411. ctrlf[key] = true

  412. end

  413. end)

  414. mouse.KeyUp:Connect(function(key)

  415. key = key:lower()

  416. if ctrlf[key] ~= nil then

  417. ctrlf[key] = false

  418. end

  419. end)

  420. while rs.RenderStepped:Wait() and c and c.Parent do

  421. if hrp and hrp.Parent then

  422. local flyspeed = tonumber(flySpeedTextbox.Text)

  423. local fb = ((ctrlf["w"] and flyspeed) or 0) + ((ctrlf["s"] and -flyspeed) or 0)

  424. local lr = ((ctrlf["a"] and -flyspeed) or 0) + ((ctrlf["d"] and flyspeed) or 0)

  425. local camcf = ws.CurrentCamera.CFrame

  426. local caX, caY, caZ, ca1, ca2, ca3, ca4, ca5, ca6, ca7, ca8, ca9 = camcf:GetComponents()

  427. local flycf = hrp.CFrame

  428. flycf = CFrame.new(flycf.X, flycf.Y, flycf.Z, ca1, ca2, ca3, ca4, ca5, ca6, ca7, ca8, ca9)

  429. flycf += camcf.lookVector * fb

  430. flycf += camcf.rightVector * lr

  431. hrp.CFrame = flycf

  432. end

  433. end

  434. local c1 = lp.Character

  435. if c1 and c1.Parent then

  436. notify("respawned")

  437. end

  438. if toggleButton and toggleButton.Parent then

  439. toggleButton.Text = "Start fling"

  440. end

  441. end)

  442. if toggleButton and toggleButton.Parent then

  443. toggleButton.Text = "Respawn"

  444. end

  445. notify("done")

  446. end

  447. end)

  448. closeButton.MouseButton1Click:Connect(function()

  449. if c and c.Parent then

  450. resReq()

  451. end

  452. ultimateFling:Destroy()

  453. end)

fling script roblox - Pastebin.com (2024)
Top Articles
Latest Posts
Article information

Author: Terrell Hackett

Last Updated:

Views: 6111

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Terrell Hackett

Birthday: 1992-03-17

Address: Suite 453 459 Gibson Squares, East Adriane, AK 71925-5692

Phone: +21811810803470

Job: Chief Representative

Hobby: Board games, Rock climbing, Ghost hunting, Origami, Kabaddi, Mushroom hunting, Gaming

Introduction: My name is Terrell Hackett, I am a gleaming, brainy, courageous, helpful, healthy, cooperative, graceful person who loves writing and wants to share my knowledge and understanding with you.