Advertisement
coincash978

Fling script

Mar 29th, 2020
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.16 KB | None | 0 0
  1. local FlingKill = Instance.new("ScreenGui")
  2. local Main = Instance.new("Frame")
  3. local Label = Instance.new("Frame")
  4. local Shadow = Instance.new("Frame")
  5. local StartKill = Instance.new("TextButton")
  6. local StopKill = Instance.new("TextButton")
  7. local StartShadow = Instance.new("Frame")
  8. local StopShadow = Instance.new("Frame")
  9. local Instructions = Instance.new("TextLabel")
  10. local CurrentPower = Instance.new("TextLabel")
  11. local Recomendation = Instance.new("TextLabel")
  12. local NameOfGui = Instance.new("TextLabel")
  13. local UPArrow = Instance.new("TextButton")
  14. local DownArrow = Instance.new("TextButton")
  15.  
  16. -- Addon By JuniorJacob
  17.  
  18. local Misc = Instance.new("Frame")
  19. local MiscLabel = Instance.new("Frame")
  20. local MiscShadow = Instance.new("Frame")
  21. local OtherKill = Instance.new("TextButton")
  22. local OtherStop = Instance.new("TextButton")
  23. local MiscInstructions = Instance.new("TextLabel")
  24. local NameOfMisc = Instance.new("TextLabel")
  25. local CUpArrow = Instance.new("TextButton")
  26. local CDownArrow = Instance.new("TextButton")
  27. local MiscCurrentPower = Instance.new("TextLabel")
  28. local OStopShadow = Instance.new("Frame")
  29. local OStartShadow = Instance.new("Frame")
  30. local ToggleButton = Instance.new("TextButton")
  31. local ToggleInfo = Instance.new("TextLabel")
  32. local ToggleShadow = Instance.new("Frame")
  33. local Exit = Instance.new("TextButton")
  34.  
  35. -- Properties
  36.  
  37. FlingKill.Name = "Fling/Kill"
  38. FlingKill.Parent = game.CoreGui
  39.  
  40. Main.Name = "Main"
  41. Main.Parent = FlingKill
  42. Main.BackgroundColor3 = Color3.new(0.92549, 0.941177, 0.945098)
  43. Main.BorderSizePixel = 0
  44. Main.Position = UDim2.new(0.702554762, 0, 0.446640313, 0)
  45. Main.Size = UDim2.new(0, 217, 0, 233)
  46. Main.Selectable = true
  47. Main.Active = true
  48. Main.Draggable = true
  49.  
  50. Label.Name = "Label"
  51. Label.Parent = Main
  52. Label.BackgroundColor3 = Color3.new(0.741176, 0.764706, 0.780392)
  53. Label.BorderSizePixel = 0
  54. Label.Size = UDim2.new(0, 217, 0, 27)
  55.  
  56. Shadow.Name = "Shadow"
  57. Shadow.Parent = Main
  58. Shadow.BackgroundColor3 = Color3.new(0.67451, 0.694118, 0.705882)
  59. Shadow.BorderSizePixel = 0
  60. Shadow.Position = UDim2.new(0, 0, 0.115879826, 0)
  61. Shadow.Size = UDim2.new(0, 217, 0, 9)
  62.  
  63. StartShadow.Name = "StartShadow"
  64. StartShadow.Parent = Main
  65. StartShadow.BackgroundColor3 = Color3.new(0.67451, 0.694118, 0.705882)
  66. StartShadow.BorderSizePixel = 0
  67. StartShadow.Position = UDim2.new(0.196, 0, 0.326, 0)
  68. StartShadow.Size = UDim2.new(0, 126, 0, 6)
  69.  
  70. StopShadow.Name = "StopShadow"
  71. StopShadow.Parent = Main
  72. StopShadow.BackgroundColor3 = Color3.new(0.67451, 0.694118, 0.705882)
  73. StopShadow.BorderSizePixel = 0
  74. StopShadow.Position = UDim2.new(0.207, 0, 0.481, 0)
  75. StopShadow.Size = UDim2.new(0, 124, 0, 6)
  76.  
  77. StartKill.Name = "StartKill"
  78. StartKill.Parent = Main
  79. StartKill.BackgroundColor3 = Color3.new(0.741176, 0.764706, 0.780392)
  80. StartKill.BorderSizePixel = 0
  81. StartKill.Position = UDim2.new(0.195852548, 0, 0.227467805, 0)
  82. StartKill.Size = UDim2.new(0, 126, 0, 23)
  83. StartKill.Font = Enum.Font.Cartoon
  84. StartKill.Text = "FE Kill/Fling"
  85. StartKill.TextColor3 = Color3.new(0, 0, 0)
  86. StartKill.TextSize = 14
  87. StartKill.AutoButtonColor = false
  88.  
  89. StopKill.Name = "StopKill"
  90. StopKill.Parent = Main
  91. StopKill.BackgroundColor3 = Color3.new(0.741176, 0.764706, 0.780392)
  92. StopKill.BorderSizePixel = 0
  93. StopKill.Position = UDim2.new(0.207373276, 0, 0.38197428, 0)
  94. StopKill.Size = UDim2.new(0, 124, 0, 23)
  95. StopKill.Font = Enum.Font.Cartoon
  96. StopKill.Text = "Stop FE Kill/Fling"
  97. StopKill.TextColor3 = Color3.new(0, 0, 0)
  98. StopKill.TextSize = 14
  99. StopKill.AutoButtonColor = false
  100.  
  101. Instructions.Name = "Instructions"
  102. Instructions.Parent = Main
  103. Instructions.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Instructions.BackgroundTransparency = 1
  105. Instructions.Position = UDim2.new(0.0391705073, 0, 0.549356222, 0)
  106. Instructions.Size = UDim2.new(0, 200, 0, 32)
  107. Instructions.Font = Enum.Font.Cartoon
  108. Instructions.Text = "You will start spinning fast enough to launch players on contact."
  109. Instructions.TextColor3 = Color3.new(0, 0, 0)
  110. Instructions.TextSize = 14
  111. Instructions.TextWrapped = true
  112.  
  113. CurrentPower.Name = "CurrentPower"
  114. CurrentPower.Parent = Main
  115. CurrentPower.BackgroundColor3 = Color3.new(1, 1, 1)
  116. CurrentPower.BackgroundTransparency = 1
  117. CurrentPower.Position = UDim2.new(0.276497692, 0, 0.686695278, 0)
  118. CurrentPower.Size = UDim2.new(0, 98, 0, 36)
  119. CurrentPower.Font = Enum.Font.Cartoon
  120. CurrentPower.Text = "Current Power = 5"
  121. CurrentPower.TextColor3 = Color3.new(0, 0, 0)
  122. CurrentPower.TextSize = 14
  123.  
  124. Recomendation.Name = "Recomendation"
  125. Recomendation.Parent = Main
  126. Recomendation.BackgroundColor3 = Color3.new(1, 1, 1)
  127. Recomendation.BackgroundTransparency = 1
  128. Recomendation.Position = UDim2.new(0.0414746553, 0, 0.884120166, 0)
  129. Recomendation.Size = UDim2.new(0, 200, 0, 21)
  130. Recomendation.Font = Enum.Font.Cartoon
  131. Recomendation.Text = "Recommended Power is 7-15"
  132. Recomendation.TextColor3 = Color3.new(0, 0, 0)
  133. Recomendation.TextSize = 14
  134.  
  135. NameOfGui.Name = "NameOfGui"
  136. NameOfGui.Parent = Main
  137. NameOfGui.BackgroundColor3 = Color3.new(1, 1, 1)
  138. NameOfGui.BackgroundTransparency = 1
  139. NameOfGui.Position = UDim2.new(0.118, 0, 0, 0)
  140. NameOfGui.Size = UDim2.new(0, 154, 0, 27)
  141. NameOfGui.Font = Enum.Font.Cartoon
  142. NameOfGui.Text = "FE Kill/Fling (Anti-Condo Edition)"
  143. NameOfGui.TextColor3 = Color3.new(0, 0, 0)
  144. NameOfGui.TextSize = 14
  145.  
  146. UPArrow.Name = "UPArrow"
  147. UPArrow.Parent = Main
  148. UPArrow.BackgroundColor3 = Color3.new(1, 1, 1)
  149. UPArrow.BackgroundTransparency = 1
  150. UPArrow.Position = UDim2.new(0.0783410147, 0, 0.716738224, 0)
  151. UPArrow.Size = UDim2.new(0, 26, 0, 23)
  152. UPArrow.Font = Enum.Font.Cartoon
  153. UPArrow.Text = "Up"
  154. UPArrow.TextColor3 = Color3.new(0, 0, 0)
  155. UPArrow.TextSize = 12
  156. UPArrow.TextWrapped = true
  157.  
  158. DownArrow.Name = "DownArrow"
  159. DownArrow.Parent = Main
  160. DownArrow.BackgroundColor3 = Color3.new(1, 1, 1)
  161. DownArrow.BackgroundTransparency = 1
  162. DownArrow.Position = UDim2.new(0.792626739, 0, 0.714592278, 0)
  163. DownArrow.Size = UDim2.new(0, 26, 0, 23)
  164. DownArrow.Font = Enum.Font.Cartoon
  165. DownArrow.Text = "Down"
  166. DownArrow.TextColor3 = Color3.new(0, 0, 0)
  167. DownArrow.TextSize = 12
  168. DownArrow.TextWrapped = true
  169.  
  170. -- Misc Properties
  171.  
  172. --[[
  173.  
  174. local Misc = Instance.new("Frame")
  175. local MiscLabel = Instance.new("Frame")
  176. local MiscShadow = Instance.new("Frame")
  177. local OtherKill = Instance.new("TextButton")
  178. local OtherStop = Instance.new("TextButton")
  179. local MiscInstructions = Instance.new("TextLabel")
  180. local NameOfMisc = Instance.new("TextLabel")
  181. local CUpArrow = Instance.new("TextButton")
  182. local CDownArrow = Instance.new("TextButton")
  183. local MiscCurrentPower = Instance.new("TextLabel")
  184. local OStopShadow = Instance.new("Frame")
  185. local OStartShadow = Instance.new("Frame")
  186. local ToggleButton = Instance.new("TextButton")
  187. local ToggleInfo = Instance.new("TextLabel")
  188. local ToggleShadow = Instance.new("Frame")
  189. local Exit = Instance.new("TextButton")
  190.  
  191. --]]
  192.  
  193. Misc.Name = "Misc"
  194. Misc.Parent = Main
  195. Misc.BackgroundColor3 = Color3.new(0.92549, 0.941177, 0.945098)
  196. Misc.BorderSizePixel = 0
  197. Misc.Position = UDim2.new(0.998, 0,0.001, 0)
  198. Misc.Size = UDim2.new(0, 214,0, 233)
  199. Misc.Selectable = true
  200. Misc.Active = true
  201. Misc.Draggable = false
  202.  
  203. MiscLabel.Name = "MiscLabel"
  204. MiscLabel.Parent = Misc
  205. MiscLabel.BackgroundColor3 = Color3.new(0.741176, 0.764706, 0.780392)
  206. MiscLabel.BorderSizePixel = 0
  207. MiscLabel.Size = UDim2.new(0, 214,0, 27)
  208.  
  209. MiscShadow.Name = "MiscShadow"
  210. MiscShadow.Parent = Misc
  211. MiscShadow.BackgroundColor3 = Color3.new(0.67451, 0.694118, 0.705882)
  212. MiscShadow.BorderSizePixel = 0
  213. MiscShadow.Position = UDim2.new(0, 0, 0.116, 0)
  214. MiscShadow.Size = UDim2.new(0, 214, 0, 9)
  215.  
  216. OStartShadow.Name = "OStartShadow"
  217. OStartShadow.Parent = Misc
  218. OStartShadow.BackgroundColor3 = Color3.new(0.67451, 0.694118, 0.705882)
  219. OStartShadow.BorderSizePixel = 0
  220. OStartShadow.Position = UDim2.new(0.173, 0, 0.326, 0)
  221. OStartShadow.Size = UDim2.new(0, 139, 0, 6)
  222.  
  223. OStopShadow.Name = "OStopShadow"
  224. OStopShadow.Parent = Misc
  225. OStopShadow.BackgroundColor3 = Color3.new(0.67451, 0.694118, 0.705882)
  226. OStopShadow.BorderSizePixel = 0
  227. OStopShadow.Position = UDim2.new(0.173, 0, 0.481, 0)
  228. OStopShadow.Size = UDim2.new(0, 139, 0, 6)
  229.  
  230. ToggleShadow.Name = "ToggleShadow"
  231. ToggleShadow.Parent = Misc
  232. ToggleShadow.BackgroundColor3 = Color3.new(0.67451, 0.694118, 0.705882)
  233. ToggleShadow.BorderSizePixel = 0
  234. ToggleShadow.Position = UDim2.new(0.79, 0, 0.957, 0)
  235. ToggleShadow.Size = UDim2.new(0, 39, 0, 4)
  236.  
  237. OtherKill.Name = "StartOthers"
  238. OtherKill.Parent = Misc
  239. OtherKill.BackgroundColor3 = Color3.new(0.741176, 0.764706, 0.780392)
  240. OtherKill.BorderSizePixel = 0
  241. OtherKill.Position = UDim2.new(0.173, 0, 0.227, 0)
  242. OtherKill.Size = UDim2.new(0, 139, 0, 23)
  243. OtherKill.Font = Enum.Font.Cartoon
  244. OtherKill.Text = "Fling Others"
  245. OtherKill.TextColor3 = Color3.new(0, 0, 0)
  246. OtherKill.TextSize = 14
  247. OtherKill.AutoButtonColor = false
  248.  
  249. OtherStop.Name = "StopOthers"
  250. OtherStop.Parent = Misc
  251. OtherStop.BackgroundColor3 = Color3.new(0.741176, 0.764706, 0.780392)
  252. OtherStop.BorderSizePixel = 0
  253. OtherStop.Position = UDim2.new(0.173, 0, 0.382, 0)
  254. OtherStop.Size = UDim2.new(0, 139, 0, 23)
  255. OtherStop.Font = Enum.Font.Cartoon
  256. OtherStop.Text = "Stop Flinging Others"
  257. OtherStop.TextColor3 = Color3.new(0, 0, 0)
  258. OtherStop.TextSize = 14
  259. OtherStop.AutoButtonColor = false
  260.  
  261. ToggleButton.Name = "ToggleButton"
  262. ToggleButton.Parent = Misc
  263. ToggleButton.BackgroundColor3 = Color3.new(0.741176, 0.764706, 0.780392)
  264. ToggleButton.BorderSizePixel = 0
  265. ToggleButton.Position = UDim2.new(0.79, 0, 0.884, 0)
  266. ToggleButton.Size = UDim2.new(0, 39, 0, 17)
  267. ToggleButton.Font = Enum.Font.Cartoon
  268. ToggleButton.Text = "Off"
  269. ToggleButton.TextColor3 = Color3.new(0, 0, 0)
  270. ToggleButton.TextSize = 14
  271. ToggleButton.AutoButtonColor = false
  272.  
  273. MiscInstructions.Name = "MiscInstructions"
  274. MiscInstructions.Parent = Misc
  275. MiscInstructions.BackgroundColor3 = Color3.new(1, 1, 1)
  276. MiscInstructions.BackgroundTransparency = 1
  277. MiscInstructions.Position = UDim2.new(0.039, 0, 0.549, 0)
  278. MiscInstructions.Size = UDim2.new(0, 200, 0, 32)
  279. MiscInstructions.Font = Enum.Font.Cartoon
  280. MiscInstructions.Text = "Automatically go's to players to fling. Note: Doesn't work on all condo games"
  281. MiscInstructions.TextColor3 = Color3.new(0, 0, 0)
  282. MiscInstructions.TextSize = 14
  283. MiscInstructions.TextWrapped = true
  284.  
  285. MiscCurrentPower.Name = "MiscCurrentPower"
  286. MiscCurrentPower.Parent = Misc
  287. MiscCurrentPower.BackgroundColor3 = Color3.new(1, 1, 1)
  288. MiscCurrentPower.BackgroundTransparency = 1
  289. MiscCurrentPower.Position = UDim2.new(0.276497692, 0, 0.686695278, 0)
  290. MiscCurrentPower.Size = UDim2.new(0, 98, 0, 36)
  291. MiscCurrentPower.Font = Enum.Font.Cartoon
  292. MiscCurrentPower.Text = "Current Power = 8"
  293. MiscCurrentPower.TextColor3 = Color3.new(0, 0, 0)
  294. MiscCurrentPower.TextSize = 14
  295.  
  296. ToggleInfo.Name = "ToggleInfo"
  297. ToggleInfo.Parent = Misc
  298. ToggleInfo.BackgroundColor3 = Color3.new(1, 1, 1)
  299. ToggleInfo.BackgroundTransparency = 1
  300. ToggleInfo.Position = UDim2.new(0.037, 0, 0.884, 0)
  301. ToggleInfo.Size = UDim2.new(0, 155, 0, 21)
  302. ToggleInfo.Font = Enum.Font.Cartoon
  303. ToggleInfo.Text = "Use Custom Power Values"
  304. ToggleInfo.TextColor3 = Color3.new(0, 0, 0)
  305. ToggleInfo.TextSize = 14
  306.  
  307. NameOfMisc.Name = "NameOfMisc"
  308. NameOfMisc.Parent = Misc
  309. NameOfMisc.BackgroundColor3 = Color3.new(1, 1, 1)
  310. NameOfMisc.BackgroundTransparency = 1
  311. NameOfMisc.Position = UDim2.new(0.098, 0, 0, 0)
  312. NameOfMisc.Size = UDim2.new(0, 154, 0, 27)
  313. NameOfMisc.Font = Enum.Font.Cartoon
  314. NameOfMisc.Text = "Addition By JuniorJacob"
  315. NameOfMisc.TextColor3 = Color3.new(0, 0, 0)
  316. NameOfMisc.TextSize = 14
  317.  
  318. Exit.Name = "Exit"
  319. Exit.Parent = Misc
  320. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  321. Exit.BackgroundTransparency = 1
  322. Exit.Position = UDim2.new(0.893, 0, 0, 0)
  323. Exit.Size = UDim2.new(0, 20, 0, 27)
  324. Exit.Font = Enum.Font.Cartoon
  325. Exit.Text = "X"
  326. Exit.TextColor3 = Color3.new(0, 0, 0)
  327. Exit.TextSize = 14
  328.  
  329. CUpArrow.Name = "CUpArrow"
  330. CUpArrow.Parent = Misc
  331. CUpArrow.BackgroundColor3 = Color3.new(1, 1, 1)
  332. CUpArrow.BackgroundTransparency = 1
  333. CUpArrow.Position = UDim2.new(0.078, 0, 0.717, 0)
  334. CUpArrow.Size = UDim2.new(0, 26, 0, 23)
  335. CUpArrow.Font = Enum.Font.Cartoon
  336. CUpArrow.Text = "Up"
  337. CUpArrow.TextColor3 = Color3.new(0, 0, 0)
  338. CUpArrow.TextSize = 12
  339. CUpArrow.TextWrapped = true
  340.  
  341. CDownArrow.Name = "CDownArrow"
  342. CDownArrow.Parent = Misc
  343. CDownArrow.BackgroundColor3 = Color3.new(1, 1, 1)
  344. CDownArrow.BackgroundTransparency = 1
  345. CDownArrow.Position = UDim2.new(0.793, 0, 0.715, 0)
  346. CDownArrow.Size = UDim2.new(0, 26, 0, 23)
  347. CDownArrow.Font = Enum.Font.Cartoon
  348. CDownArrow.Text = "Down"
  349. CDownArrow.TextColor3 = Color3.new(0, 0, 0)
  350. CDownArrow.TextSize = 12
  351. CDownArrow.TextWrapped = true
  352.  
  353. local toggle = false
  354.  
  355. if game.Players.LocalPlayer:FindFirstChild('Number') then
  356. for i,v in pairs(game.Players.LocalPlayer:GetChildren()) do
  357. if v.Name == "Number" then
  358. v:Destroy()
  359. end
  360. end
  361. elseif game.Players.LocalPlayer:FindFirstChild('CNumber') then
  362. for i,v in pairs(game.Players.LocalPlayer:GetChildren()) do
  363. if v.Name == "CNumber" then
  364. v:Destroy()
  365. end
  366. end
  367. elseif game.Workspace:FindFirstChild("XD") then
  368. for i,v in pairs(workspace:GetChildren()) do
  369. if v.Name == "XD" then
  370. v:Destroy()
  371. end
  372. end
  373. end
  374.  
  375. power = 500
  376. active = false
  377. local val = Instance.new("IntValue")
  378. val.Name = "Number"
  379. val.Parent = game.Players.LocalPlayer
  380. val.Value = 5
  381.  
  382. cpower = 8000
  383. cactive = false
  384. local cval = Instance.new("IntValue")
  385. cval.Name = "CNumber"
  386. cval.Parent = game.Players.LocalPlayer
  387. cval.Value = 8
  388.  
  389. if game.PlaceId == 414300524 then -- Hilton Hotels
  390. Recomendation.Text = "Recommended Power is 8"
  391. elseif game.PlaceId == 323925323 then -- Frappe
  392. Recomendation.Text = "Recommended Power is 30"
  393. elseif game.PlaceId == 679498303 then -- Bakiez
  394. Recomendation.Text = "Recommended Power is 15"
  395. elseif game.PlaceId == 265360172 then -- Dunkin Donuts
  396. Recomendation.Text = "Recommended Power is 6"
  397. elseif game.PlaceId == 610172644 then -- Verde
  398. Recomendation.Text = "Recommended Power is 23"
  399. elseif game.PlaceId == 1606798444 then
  400. Recomendation.Text = "This is where I made the addition."
  401. end
  402.  
  403. Exit.MouseButton1Click:connect(function()
  404. FlingKill:Destroy()
  405. end)
  406.  
  407. function startSpin()
  408. game:GetService('RunService').Stepped:connect(function()
  409. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  410. game.Players.LocalPlayer.Character:FindFirstChild('Head').CanCollide = false
  411. game.Players.LocalPlayer.Character:FindFirstChild('Torso').CanCollide = false
  412. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  413. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  414. else
  415. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  416. game.Players.LocalPlayer.Character:FindFirstChild('Head').CanCollide = false
  417. game.Players.LocalPlayer.Character:FindFirstChild('UpperTorso').CanCollide = false
  418. game.Players.LocalPlayer.Character:FindFirstChild('LowerTorso').CanCollide = false
  419. game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart').CanCollide = false
  420. end
  421. end
  422. end)
  423. wait(.1)
  424. local bambam = Instance.new("BodyThrust")
  425. bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  426. if toggle == false then
  427. bambam.Force = Vector3.new(power,0,power)
  428. else
  429. bambam.Force = Vector3.new(cpower,0,cpower)
  430. end
  431. bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  432. end
  433.  
  434. StartKill.MouseButton1Click:connect(function()
  435. startSpin()
  436. end)
  437.  
  438. StopKill.MouseButton1Click:connect(function()
  439. active = false
  440. game.Players.LocalPlayer.Character.HumanoidRootPart.BodyThrust:Remove()
  441. end)
  442.  
  443. local firsttimesetup = false
  444. local loopOn = false
  445.  
  446. function tp(playerObject, objectCframe) -- send local player's player object and a CFrame.new() for the xyz and itll tp properly
  447. if playerObject.Parent == game.Players then -- usage: tp(game.Players["PLRNAME"], FULLPATHHERE.CFrame)
  448. playerObject.Character:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(objectCframe.X, objectCframe.Y, objectCframe.Z)
  449. end
  450. end
  451.  
  452. local warpDone = false
  453. function warp(sentObj)
  454. warpDone = false
  455. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  456.  
  457. local function run(givenObj)
  458. local multi = 1.5
  459. if givenObj.Position then
  460. local warpObj = givenObj.Position
  461. local getMag = warpObj-root.Position
  462. local magnitude = getMag.magnitude
  463. magnitude = tostring(math.floor(magnitude + 0.99)) if tonumber(magnitude) > 9 then multi = magnitude:sub(1, -2) * 1.2 else multi = magnitude:sub(1, -1) * 1.2 end magnitude = tonumber(magnitude)
  464.  
  465. for a=0, magnitude, multi do
  466. root.Anchored = false
  467. root.CFrame = root.CFrame + (CFrame.new(root.Position, warpObj).lookVector * multi)
  468. wait(0.05)
  469. end
  470. root.Anchored = true
  471. end
  472. end
  473. run(sentObj)
  474. root.Anchored = false
  475. warpDone = true
  476. end
  477.  
  478. OtherKill.MouseButton1Click:connect(function()
  479. startSpin()
  480. wait(0.1)
  481. loopOn = true
  482. while loopOn == true do
  483. wait(0.1)
  484. for i,v in pairs(game.Players:GetPlayers()) do
  485. if v.Name ~= game.Players.LocalPlayer.Name and v.Character.Humanoid.Sit ~= true then
  486. warp(v.Character.HumanoidRootPart)
  487. repeat
  488. wait()
  489. until warpDone == true
  490. wait(0.5)
  491. end
  492. end
  493. end
  494. end)
  495.  
  496. OtherStop.MouseButton1Click:connect(function()
  497. wait()
  498. active = false
  499. loopOn = false
  500. warpDone = true
  501. game.Players.LocalPlayer.Character.HumanoidRootPart.BodyThrust:Remove()
  502. end)
  503.  
  504. UPArrow.MouseButton1Click:connect(function()
  505. power = power + 100
  506. game.Players.LocalPlayer.Number.Value = game.Players.LocalPlayer.Number.Value + 1
  507. CurrentPower.Text = "Current Power = " .. game.Players.LocalPlayer.Number.Value
  508. end)
  509.  
  510. DownArrow.MouseButton1Click:connect(function()
  511. power = power - 100
  512. game.Players.LocalPlayer.Number.Value = game.Players.LocalPlayer.Number.Value - 1
  513. CurrentPower.Text = "Current Power = " .. game.Players.LocalPlayer.Number.Value
  514. end)
  515.  
  516. CUpArrow.MouseButton1Click:connect(function()
  517. if toggle ~= false then
  518. cpower = cpower + 100
  519. game.Players.LocalPlayer.CNumber.Value = game.Players.LocalPlayer.CNumber.Value + 1
  520. MiscCurrentPower.Text = "Current Power = " .. game.Players.LocalPlayer.CNumber.Value
  521. end
  522. end)
  523.  
  524. CDownArrow.MouseButton1Click:connect(function()
  525. if toggle ~= false then
  526. cpower = cpower - 100
  527. game.Players.LocalPlayer.CNumber.Value = game.Players.LocalPlayer.CNumber.Value - 1
  528. MiscCurrentPower.Text = "Current Power = " .. game.Players.LocalPlayer.CNumber.Value
  529. end
  530. end)
  531.  
  532. local gui = Main
  533. local buttonArray = {}
  534. local defaultcolor3 = Color3.fromRGB(188, 195, 198)
  535. local shadowcolor3 = Color3.fromRGB(172, 177, 179)
  536. local downcolor3 = Color3.fromRGB(198, 205, 208)
  537. local attachedArray = {
  538. StartOthers = gui.Misc.OStartShadow,
  539. StopOthers = gui.Misc.OStopShadow,
  540. ToggleButton = gui.Misc.ToggleShadow,
  541. StartKill = gui.StartShadow,
  542. StopKill = gui.StopShadow
  543. }
  544.  
  545. for i,v in pairs(gui:GetChildren()) do
  546. if v.ClassName == "TextButton" then
  547. buttonArray[v.Name] = v
  548. end
  549.  
  550. for x,c in pairs(gui.Misc:GetChildren()) do
  551. if c.ClassName == "TextButton" then
  552. buttonArray[c.Name] = c
  553. end
  554. end
  555. end
  556.  
  557. for i,v in pairs(buttonArray) do
  558. v.MouseEnter:connect(function()
  559. v.BackgroundColor3 = shadowcolor3
  560. end)
  561. v.MouseLeave:connect(function()
  562. v.BackgroundColor3 = defaultcolor3
  563. end)
  564. v.MouseButton1Click:connect(function()
  565. if v.Name ~= "Exit" and v.Name ~= "CUpArrow" and v.Name ~= "CDownArrow" and v.Name ~= "UPArrow" and v.Name ~= "DownArrow" then
  566. -- usage: attachedArray[v.Name] (that gets the object btw)
  567. if v.Name == "StopOthers" then
  568. attachedArray[v.Name].Visible = true
  569. v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale + 0.026, v.Position.Y.Offset)
  570. wait(0.05)
  571. v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale - 0.026, v.Position.Y.Offset)
  572. elseif v.Name == "ToggleButton" then
  573. attachedArray[v.Name].Visible = true
  574. v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale + 0.017, v.Position.Y.Offset)
  575. if toggle == false then
  576. v.Text = "On"
  577. toggle = true
  578. else
  579. v.Text = "Off"
  580. toggle = false
  581. end
  582. wait(0.05)
  583. v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale - 0.017, v.Position.Y.Offset)
  584. else
  585. attachedArray[v.Name].Visible = true
  586. v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale + 0.026, v.Position.Y.Offset)
  587. wait(0.05)
  588. v.Position = UDim2.new(v.Position.X.Scale, v.Position.X.Offset, v.Position.Y.Scale - 0.026, v.Position.Y.Offset)
  589. end
  590. wait(1)
  591. end
  592. end)
  593. end
  594.  
  595. while wait(0.15) do
  596. if game.Players.LocalPlayer.Character.Humanoid.Sit == true then
  597. game.Players.LocalPlayer.Character.Humanoid.Sit = false
  598. end
  599. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement