Advertisement
zhangfengshan

甩人

Feb 20th, 2023 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.38 KB | None | 0 0
  1. local ui = loadstring(game:HttpGet("https://pastebin.com/raw/Qedc1PaH"))();
  2. local window = ui:CreateWindow("文明游戏,尊重他人")
  3. --提示
  4.  
  5. loadstring(game:HttpGet("https://pastebin.com/raw/szMDGj4c"))();--飞行
  6.  
  7. local ultimateFling = Instance.new("ScreenGui")
  8. local drag = Instance.new("Frame")
  9. local UICorner = Instance.new("UICorner")
  10. local windowNameFrame = Instance.new("Frame")
  11. local UICorner_2 = Instance.new("UICorner")
  12. local windowNameLabel = Instance.new("TextLabel")
  13. local closeButton = Instance.new("TextButton")
  14. local mainFrame = Instance.new("Frame")
  15. local UICorner_3 = Instance.new("UICorner")
  16. local buttonsFrame = Instance.new("Frame")
  17. local toggleButton = Instance.new("TextButton")
  18. local UICorner_4 = Instance.new("UICorner")
  19. local rotSpeedLabel = Instance.new("TextLabel")
  20. local UICorner_5 = Instance.new("UICorner")
  21. local rotSpeedTextbox = Instance.new("TextBox")
  22. local flySpeedLabel = Instance.new("TextLabel")
  23. local UICorner_6 = Instance.new("UICorner")
  24. local flySpeedTextbox = Instance.new("TextBox")
  25. local UICorner_7 = Instance.new("UICorner")
  26. local notificationsFrame = Instance.new("Frame")
  27. local UIListLayout = Instance.new("UIListLayout")
  28. local notificationTemplate = Instance.new("TextLabel")
  29. local teleportersFrame = Instance.new("Frame")
  30. local teleportingLabel = Instance.new("TextLabel")
  31. local UICorner_8 = Instance.new("UICorner")
  32. local tpingTextbox = Instance.new("TextBox")
  33.  
  34. ultimateFling.Name = "ultimateFling"
  35. ultimateFling.Parent = game:GetService("CoreGui")
  36. ultimateFling.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  37. ultimateFling.ResetOnSpawn = false
  38.  
  39. drag.Name = "drag"
  40. drag.Parent = ultimateFling
  41. drag.Active = true
  42. drag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. drag.BackgroundTransparency = 1.000
  44. drag.Draggable = true
  45. drag.Position = UDim2.new(0.5, -150, 0.5, -67)
  46. drag.Selectable = true
  47. drag.Size = UDim2.new(0, 300, 0, 135)
  48.  
  49. UICorner.Parent = drag
  50.  
  51. windowNameFrame.Name = "windowNameFrame"
  52. windowNameFrame.Parent = drag
  53. windowNameFrame.BackgroundColor3 = Color3.fromRGB(64, 64, 64)
  54. windowNameFrame.Size = UDim2.new(1, 0, 0, 30)
  55.  
  56. UICorner_2.Parent = windowNameFrame
  57.  
  58. windowNameLabel.Name = "windowNameLabel"
  59. windowNameLabel.Parent = windowNameFrame
  60. windowNameLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  61. windowNameLabel.BackgroundTransparency = 1.000
  62. windowNameLabel.BorderSizePixel = 0
  63. windowNameLabel.Size = UDim2.new(1, 0, 0, 20)
  64. windowNameLabel.Font = Enum.Font.SourceSans
  65. windowNameLabel.Text = "Ultimate Fling"
  66. windowNameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  67. windowNameLabel.TextSize = 20.000
  68.  
  69. closeButton.Name = "closeButton"
  70. closeButton.Parent = windowNameLabel
  71. closeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  72. closeButton.BackgroundTransparency = 1.000
  73. closeButton.BorderSizePixel = 0
  74. closeButton.Position = UDim2.new(1, -20, 0, 0)
  75. closeButton.Size = UDim2.new(0, 20, 0, 20)
  76. closeButton.Font = Enum.Font.SourceSans
  77. closeButton.Text = "X"
  78. closeButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  79. closeButton.TextSize = 20.000
  80.  
  81. mainFrame.Name = "mainFrame"
  82. mainFrame.Parent = drag
  83. mainFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  84. mainFrame.Position = UDim2.new(0, 0, 0, 20)
  85. mainFrame.Size = UDim2.new(1, 0, 1, -20)
  86.  
  87. UICorner_3.Parent = mainFrame
  88.  
  89. buttonsFrame.Name = "buttonsFrame"
  90. buttonsFrame.Parent = mainFrame
  91. buttonsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  92. buttonsFrame.BackgroundTransparency = 0.500
  93. buttonsFrame.Size = UDim2.new(0, 110, 1, 0)
  94.  
  95. toggleButton.Name = "toggleButton"
  96. toggleButton.Parent = buttonsFrame
  97. toggleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  98. toggleButton.BackgroundTransparency = 0.800
  99. toggleButton.BorderSizePixel = 0
  100. toggleButton.Position = UDim2.new(0, 5, 0, 5)
  101. toggleButton.Size = UDim2.new(0, 100, 0, 25)
  102. toggleButton.Font = Enum.Font.SourceSans
  103. toggleButton.Text = "开始甩飞"
  104. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  105. toggleButton.TextSize = 20.000
  106.  
  107. UICorner_4.Parent = toggleButton
  108.  
  109. rotSpeedLabel.Name = "rotSpeedLabel"
  110. rotSpeedLabel.Parent = buttonsFrame
  111. rotSpeedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  112. rotSpeedLabel.BackgroundTransparency = 0.800
  113. rotSpeedLabel.Position = UDim2.new(0, 5, 0, 35)
  114. rotSpeedLabel.Size = UDim2.new(0, 100, 0, 35)
  115. rotSpeedLabel.Font = Enum.Font.SourceSans
  116. rotSpeedLabel.Text = "旋转速度"
  117. rotSpeedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  118. rotSpeedLabel.TextSize = 14.000
  119. rotSpeedLabel.TextYAlignment = Enum.TextYAlignment.Top
  120.  
  121. UICorner_5.Parent = rotSpeedLabel
  122.  
  123. rotSpeedTextbox.Name = "rotSpeedTextbox"
  124. rotSpeedTextbox.Parent = rotSpeedLabel
  125. rotSpeedTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  126. rotSpeedTextbox.BackgroundTransparency = 1.000
  127. rotSpeedTextbox.Position = UDim2.new(0, 0, 0, 13)
  128. rotSpeedTextbox.Size = UDim2.new(1, 0, 1, -13)
  129. rotSpeedTextbox.ClearTextOnFocus = false
  130. rotSpeedTextbox.Font = Enum.Font.SourceSans
  131. rotSpeedTextbox.Text = "10000"
  132. rotSpeedTextbox.TextColor3 = Color3.fromRGB(0, 255, 0)
  133. rotSpeedTextbox.TextSize = 16.000
  134.  
  135. flySpeedLabel.Name = "flySpeedLabel"
  136. flySpeedLabel.Parent = buttonsFrame
  137. flySpeedLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  138. flySpeedLabel.BackgroundTransparency = 0.800
  139. flySpeedLabel.Position = UDim2.new(0, 5, 0, 75)
  140. flySpeedLabel.Size = UDim2.new(0, 100, 0, 35)
  141. flySpeedLabel.Font = Enum.Font.SourceSans
  142. flySpeedLabel.Text = "飞行速度"
  143. flySpeedLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  144. flySpeedLabel.TextSize = 14.000
  145. flySpeedLabel.TextYAlignment = Enum.TextYAlignment.Top
  146.  
  147. UICorner_6.Parent = flySpeedLabel
  148.  
  149. flySpeedTextbox.Name = "flySpeedTextbox"
  150. flySpeedTextbox.Parent = flySpeedLabel
  151. flySpeedTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  152. flySpeedTextbox.BackgroundTransparency = 1.000
  153. flySpeedTextbox.Position = UDim2.new(0, 0, 0, 13)
  154. flySpeedTextbox.Size = UDim2.new(1, 0, 1, -13)
  155. flySpeedTextbox.ClearTextOnFocus = false
  156. flySpeedTextbox.Font = Enum.Font.SourceSans
  157. flySpeedTextbox.Text = "1"
  158. flySpeedTextbox.TextColor3 = Color3.fromRGB(0, 255, 0)
  159. flySpeedTextbox.TextSize = 16.000
  160.  
  161. UICorner_7.Parent = buttonsFrame
  162.  
  163. notificationsFrame.Name = "notificationsFrame"
  164. notificationsFrame.Parent = mainFrame
  165. notificationsFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  166. notificationsFrame.BackgroundTransparency = 1.000
  167. notificationsFrame.ClipsDescendants = true
  168. notificationsFrame.Position = UDim2.new(0, 110, 0, 45)
  169. notificationsFrame.Size = UDim2.new(1, -110, 1, -45)
  170.  
  171. UIListLayout.Parent = notificationsFrame
  172. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  173. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
  174.  
  175. notificationTemplate.Name = "notificationTemplate"
  176. notificationTemplate.Parent = notificationsFrame
  177. notificationTemplate.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  178. notificationTemplate.BackgroundTransparency = 1.000
  179. notificationTemplate.ClipsDescendants = true
  180. notificationTemplate.Size = UDim2.new(1, 0, 0, 20)
  181. notificationTemplate.Visible = false
  182. notificationTemplate.Font = Enum.Font.SourceSans
  183. notificationTemplate.Text = ""
  184. notificationTemplate.TextColor3 = Color3.fromRGB(255, 255, 255)
  185. notificationTemplate.TextSize = 19.000
  186. notificationTemplate.TextWrapped = true
  187.  
  188. teleportersFrame.Name = "teleportersFrame"
  189. teleportersFrame.Parent = mainFrame
  190. teleportersFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  191. teleportersFrame.BackgroundTransparency = 1.000
  192. teleportersFrame.ClipsDescendants = true
  193. teleportersFrame.Position = UDim2.new(0, 110, 0, 0)
  194. teleportersFrame.Size = UDim2.new(1, -110, 0, 45)
  195.  
  196. teleportingLabel.Name = "teleportingLabel"
  197. teleportingLabel.Parent = teleportersFrame
  198. teleportingLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  199. teleportingLabel.BackgroundTransparency = 0.800
  200. teleportingLabel.Position = UDim2.new(0, 5, 0, 5)
  201. teleportingLabel.Size = UDim2.new(1, -10, 1, -10)
  202. teleportingLabel.Font = Enum.Font.SourceSans
  203. teleportingLabel.Text = "传送踢飞(0禁用)"
  204. teleportingLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  205. teleportingLabel.TextSize = 14.000
  206. teleportingLabel.TextYAlignment = Enum.TextYAlignment.Top
  207.  
  208. UICorner_8.Parent = teleportingLabel
  209.  
  210. tpingTextbox.Name = "tpingTextbox"
  211. tpingTextbox.Parent = teleportingLabel
  212. tpingTextbox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  213. tpingTextbox.BackgroundTransparency = 1.000
  214. tpingTextbox.Position = UDim2.new(0, 0, 0, 13)
  215. tpingTextbox.Size = UDim2.new(1, 0, 1, -13)
  216. tpingTextbox.ClearTextOnFocus = false
  217. tpingTextbox.Font = Enum.Font.SourceSans
  218. tpingTextbox.Text = "0"
  219. tpingTextbox.TextColor3 = Color3.fromRGB(0, 255, 0)
  220. tpingTextbox.TextSize = 16.000
  221.  
  222. local function align(Part0, Part1)
  223. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  224. local att1 = Instance.new("Attachment")
  225. att1.Orientation = Vector3.new(0, 0, 0)
  226. att1.Position = Vector3.new(0, 0, 0)
  227. att1.Archivable = true
  228. local att0 = att1:Clone()
  229.  
  230. local ap = Instance.new("AlignPosition", att0)
  231. ap.ApplyAtCenterOfMass = true
  232. ap.MaxForce = 9e9
  233. ap.MaxVelocity = 9e9
  234. ap.ReactionForceEnabled = false
  235. ap.Responsiveness = 200
  236. ap.RigidityEnabled = false
  237.  
  238. ap.Attachment1 = att1
  239. ap.Attachment0 = att0
  240.  
  241. att1.Parent = Part1
  242. att0.Parent = Part0
  243. end
  244.  
  245. local rs = game:GetService("RunService")
  246.  
  247. local function notify(msg)
  248. spawn(function()
  249. local label = notificationTemplate:Clone()
  250. label.Text = msg
  251. label.Parent = notificationsFrame
  252. label.Size = UDim2.new(1, 0, 0, 0)
  253. label.Visible = true
  254. local siz = 0
  255. while rs.Stepped:Wait() and label and label.Parent and (siz < 20) do
  256. siz += 1
  257. label.Size = UDim2.new(1, 0, 0, siz)
  258. end
  259. if label and label.Parent then
  260. wait(15)
  261. while rs.Stepped:Wait() and label and label.Parent and (label.TextTransparency < 1) do
  262. label.TextTransparency += 0.1
  263. end
  264. if label and label.Parent then
  265. label:Destroy()
  266. end
  267. end
  268. end)
  269. end
  270.  
  271. local plrs = game:GetService("Players")
  272. local lp = plrs.LocalPlayer
  273. local mouse = lp:GetMouse()
  274. local ws = game:GetService("Workspace")
  275. local c = nil
  276.  
  277. local function resReq()
  278. local nm = Instance.new("Model")
  279. local nh = Instance.new("Humanoid", nm)
  280. nh.Health = 100
  281. lp.Character = nm
  282. nh.Health = 0
  283. nh:Destroy()
  284. nm:Destroy()
  285. end
  286.  
  287. local parts = {}
  288.  
  289. ws.DescendantRemoving:Connect(function(des)
  290. if table.find(parts, des) then
  291. local desn = des.Name
  292. wait()
  293. if c and c.Parent then
  294. notify("lost part: " .. desn)
  295. end
  296. end
  297. end)
  298.  
  299. toggleButton.MouseButton1Click:Connect(function()
  300. if c and c.Parent then
  301. resReq()
  302. lp.Character = c
  303. notify("attempting to respawn...")
  304. else
  305. notify("Loading...")
  306. c = lp.Character
  307. if not (c and c.Parent) then
  308. notify("error: character not found")
  309. return nil
  310. end
  311. local hum = c:FindFirstChildOfClass("Humanoid")
  312. if not (hum and hum.Parent) then
  313. notify("error: humanoid not found")
  314. return nil
  315. end
  316. if hum.Health == 0 then
  317. notify("error: humanoid health 0")
  318. return nil
  319. end
  320. resReq()
  321. lp.Character = c
  322. wait(5.1)
  323. if not (c and c.Parent) then
  324. notify("error: character removed")
  325. return nil
  326. end
  327. if not (hum and hum.Parent) then
  328. notify("error: humanoid removed")
  329. return nil
  330. end
  331. if hum.Health == 0 then
  332. notify("error: humanoid died")
  333. return nil
  334. end
  335. c:BreakJoints()
  336. hum.Health = 0
  337. wait()
  338. if not (c and c.Parent) then
  339. notify("error: character removed")
  340. return nil
  341. end
  342. parts = {}
  343. for i, v in pairs(c:GetDescendants()) do
  344. if v and v.Parent and v:IsA("BasePart") then
  345. if v.CanCollide then
  346. table.insert(parts, v)
  347. else
  348. v.Velocity = Vector3.new(0, -1000, 0)
  349. end
  350. end
  351. end
  352. local hrp = Instance.new("Part", c)
  353. hrp.Name = "hrp"
  354. hrp.Anchored = true
  355. hrp.Transparency = 1
  356. pcall(function()
  357. hrp.CFrame = parts[1].CFrame
  358. end)
  359. ws.CurrentCamera.CameraSubject = hrp
  360. for i, v in pairs(parts) do
  361. if v and v.Parent then
  362. align(v, hrp)
  363. end
  364. end
  365. spawn(function()
  366. local currentp = nil
  367. spawn(function()
  368. while rs.Stepped:Wait() and c and c.Parent and hrp and hrp.Parent do
  369. if currentp and currentp.Parent then
  370. local c1 = currentp.Character
  371. if c1 and c1.Parent then
  372. local hed1 = c1:FindFirstChild("Head") or c1:FindFirstChild("Torso") or c1:FindFirstChild("HumanoidRootPart") or c1:FindFirstChildWhichIsA("BasePart")
  373. if hed1 then
  374. hrp.CFrame = hed1.CFrame
  375. end
  376. end
  377. end
  378. end
  379. end)
  380. while rs.Heartbeat:Wait() and c and c.Parent and hrp and hrp.Parent do
  381. local delay = tonumber(tpingTextbox.Text)
  382. if (not delay) or (delay < 0) then
  383. delay = 0
  384. end
  385. if delay == 0 then
  386. currentp = false
  387. else
  388. wait(delay)
  389. delay = tonumber(tpingTextbox.Text)
  390. if (not delay) or (delay < 0) then
  391. delay = 0
  392. end
  393. if c and c.Parent and hrp and hrp.Parent and (delay ~= 0) then
  394. local getp = plrs:GetPlayers()
  395. local i1 = false
  396. for i, v in pairs(getp) do
  397. if (v == currentp) and (v ~= lp) then
  398. i1 = i
  399. end
  400. end
  401. if (not i1) then
  402. i1 = 1
  403. end
  404. local function nextp()
  405. if i1 == #getp then
  406. i1 = 1
  407. else
  408. i1 += 1
  409. end
  410. currentp = getp[i1]
  411. end
  412. local c1 = nil
  413. while wait() and not (c1 and c1.Parent) do
  414. nextp()
  415. if currentp == lp then
  416. nextp()
  417. end
  418. c1 = currentp.Character
  419. end
  420. end
  421. end
  422. end
  423. end)
  424.  
  425. spawn(function()
  426. while c and c.Parent and rs.Heartbeat:Wait() do
  427. for i, v in pairs(parts) do
  428. if v and v.Parent then
  429. v.Velocity = Vector3.new(0, -25.05, 0)
  430. local s = tonumber(rotSpeedTextbox.Text)
  431. v.RotVelocity = Vector3.new(s, s, s)
  432. end
  433. end
  434. end
  435. end)
  436.  
  437. spawn(function()
  438. while rs.Stepped:Wait() and c and c.Parent do
  439. for i, v in pairs(parts) do
  440. if v and v.Parent then
  441. v.CanCollide = false
  442. end
  443. end
  444. end
  445. end)
  446.  
  447. spawn(function()
  448. local ctrlf = {
  449. ["w"] = false,
  450. ["a"] = false,
  451. ["s"] = false,
  452. ["d"] = false
  453. }
  454. mouse.KeyDown:Connect(function(key)
  455. key = key:lower()
  456. if ctrlf[key] ~= nil then
  457. ctrlf[key] = true
  458. end
  459. end)
  460. mouse.KeyUp:Connect(function(key)
  461. key = key:lower()
  462. if ctrlf[key] ~= nil then
  463. ctrlf[key] = false
  464. end
  465. end)
  466. while rs.RenderStepped:Wait() and c and c.Parent do
  467. if hrp and hrp.Parent then
  468. local flyspeed = tonumber(flySpeedTextbox.Text)
  469. local fb = ((ctrlf["w"] and flyspeed) or 0) + ((ctrlf["s"] and -flyspeed) or 0)
  470. local lr = ((ctrlf["a"] and -flyspeed) or 0) + ((ctrlf["d"] and flyspeed) or 0)
  471. local camcf = ws.CurrentCamera.CFrame
  472. local caX, caY, caZ, ca1, ca2, ca3, ca4, ca5, ca6, ca7, ca8, ca9 = camcf:GetComponents()
  473. local flycf = hrp.CFrame
  474. flycf = CFrame.new(flycf.X, flycf.Y, flycf.Z, ca1, ca2, ca3, ca4, ca5, ca6, ca7, ca8, ca9)
  475. flycf += camcf.lookVector * fb
  476. flycf += camcf.rightVector * lr
  477. hrp.CFrame = flycf
  478. end
  479. end
  480.  
  481. local c1 = lp.Character
  482. if c1 and c1.Parent then
  483. notify("respawned")
  484. end
  485.  
  486. if toggleButton and toggleButton.Parent then
  487. toggleButton.Text = "Start fling"
  488. end
  489. end)
  490.  
  491. if toggleButton and toggleButton.Parent then
  492. toggleButton.Text = "Respawn"
  493. end
  494.  
  495. notify("done")
  496. end
  497. end)
  498.  
  499. closeButton.MouseButton1Click:Connect(function()
  500. if c and c.Parent then
  501. resReq()
  502. end
  503. ultimateFling:Destroy()
  504. end)
  505.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement