TheUnknownDiscord

chainsaw roomba chainsaw roomba

Jan 23rd, 2022 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.05 KB | None | 0 0
  1. game:GetService("Chat").BubbleChatEnabled = true
  2. roombas = {}
  3. tool = Instance.new("Tool",owner.Backpack)
  4. wrench = Instance.new("Part",tool)
  5. wrench.Name = "Handle"
  6. wrench.Size = Vector3.new(0.153 * 2, 1.308 * 2, 0.405 * 2)
  7. local Mesh = Instance.new("SpecialMesh")
  8. Mesh.Parent = wrench
  9. Mesh.MeshId = "http://www.roblox.com/asset/?id=431003868"
  10. Mesh.TextureId = "http://www.roblox.com/asset/?id=430627740"
  11. Mesh.Scale = Vector3.new(2, 2, 2)
  12. tool.Grip = CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,-1.308,0.25)
  13. tool.Activated:Connect(function()
  14. local Anim = Instance.new("StringValue")
  15. Anim.Name = "toolanim"
  16. Anim.Value = "Slash"
  17. Anim.Parent = tool
  18. pcall(function()
  19. local dead = false
  20. local model = Instance.new("Model", script)
  21. model.Name = "chainsawroomba"
  22. local humfake = Instance.new("Humanoid", model)
  23. humfake.MaxHealth = 150
  24. humfake.Health = 150
  25. table.insert(roombas,humfake)
  26. table.insert(roombas,model)
  27. local part = Instance.new("Part",model)
  28. local part2 = Instance.new("Part",model)
  29. local part3 = Instance.new("Part",model)
  30. local part4 = Instance.new("Part",model)
  31. local part5 = Instance.new("Part",model)
  32. local billboard = Instance.new("BillboardGui", part)
  33. billboard.Adornee = part
  34. billboard.StudsOffset = Vector3.new(0, 2.5, 0)
  35. billboard.Size = UDim2.new(2.5,0,0.75,0)
  36. billboard.Name = "chat"
  37. local cloakmeter = Instance.new("Frame",billboard)
  38. cloakmeter.BackgroundColor3 = Color3.fromRGB(200,30,30)
  39. local cloakmeter2 = Instance.new("Frame",cloakmeter)
  40. cloakmeter2.BackgroundColor3 = Color3.fromRGB(30,200,30)
  41. cloakmeter.Size = UDim2.new(1,0,1,0)
  42. cloakmeter2.Size = UDim2.new(1,0,1,0)
  43. cloakmeter.AnchorPoint = Vector2.new(0.5, 0.5)
  44. cloakmeter.Position = UDim2.new(0.5, 0, 0.5, 0)
  45. cloakmeter.Active = true
  46. cloakmeter.BackgroundTransparency = 0
  47. cloakmeter2.Active = true
  48. cloakmeter2.BackgroundTransparency = 0
  49. part.Size = Vector3.new(2.6,7, 2.6)
  50. part.CanCollide = false
  51. part2.Size = Vector3.new(0.626, 2.4, 2.4)
  52. part2.Transparency = 1
  53. part2.Shape = "Cylinder"
  54. local density = 1
  55. local friction = 0.75
  56. local elasticity = 0
  57. local frictionWeight = 100000000000
  58. local elasticityWeight = 0
  59. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  60. part2.CustomPhysicalProperties = physProperties
  61. local chainsaw = Instance.new("Part",model)
  62. chainsaw.Massless = true
  63. chainsaw.CanCollide = false
  64. part5.Size = Vector3.new(0.511, 0.474,0.221)
  65. part4.Size = Vector3.new(0.34657166666,0.040885,0.34658333333)
  66. part3.Size = Vector3.new(0.624875,0.14175,0.144625)
  67. local weld = Instance.new("Weld",part)
  68. weld.Part0 = part2
  69. weld.Part1 = part
  70. weld.C0 = CFrame.Angles(0,0,math.rad(90))
  71. local weld2 = Instance.new("Weld",part)
  72. weld2.Part0 = chainsaw
  73. weld2.Part1 = part
  74. weld2.C0 = CFrame.new(0,-0.65,0.9874999525)
  75. local weld3 = Instance.new("Weld",part)
  76. weld3.Part0 = part3
  77. weld3.Part1 = part
  78. weld3.C0 = CFrame.Angles(0,math.rad(90),0) * CFrame.new(0.45,-0.285,0.25)
  79. local weld4 = Instance.new("Weld",part)
  80. weld4.Part0 = part4
  81. weld4.Part1 = part
  82. weld4.C0 = CFrame.new(0.5,-0.285,-0.125)
  83. local weld5 = Instance.new("Weld",part)
  84. weld5.Part0 = part5
  85. weld5.Part1 = part
  86. weld5.C0 = CFrame.Angles(0,math.rad(180),0) * CFrame.new(-0.65,-0.535,0.25)
  87. local Mesh2 = Instance.new("SpecialMesh")
  88. Mesh2.Parent = part
  89. Mesh2.MeshId = "http://www.roblox.com/asset/?id=706699768"
  90. Mesh2.TextureId = "http://www.roblox.com/asset/?id=706699782"
  91. Mesh2.Scale = Vector3.new(2, 2, 2)
  92. local Mesh4 = Instance.new("SpecialMesh")
  93. Mesh4.Parent = part4
  94. Mesh4.MeshId = "http://www.roblox.com/asset/?id=942596653"
  95. Mesh4.TextureId = "http://www.roblox.com/asset/?id=942596693"
  96. Mesh4.Scale = Vector3.new(0.00166666666,0.00166666666,0.00166666666)
  97. local Mesh5 = Instance.new("SpecialMesh")
  98. Mesh5.Parent = part5
  99. Mesh5.MeshId = "http://www.roblox.com/asset/?id=5014717978"
  100. Mesh5.TextureId = "http://www.roblox.com/asset/?id=5014718065"
  101. local Mesh3 = Instance.new("SpecialMesh")
  102. Mesh3.Parent = part3
  103. Mesh3.MeshId = "http://www.roblox.com/asset/?id=431429771"
  104. Mesh3.Scale = Vector3.new(0.125, 0.125, 0.125)
  105. part3.Color = Color3.fromRGB(50,50,50)
  106. part.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-7.5)
  107. local Mesh = Instance.new("SpecialMesh")
  108. chainsaw.Size = Vector3.new(1.5, 3, 8)
  109. Mesh.Parent = chainsaw
  110. Mesh.MeshId = "http://www.roblox.com/asset/?id=2766469"
  111. Mesh.TextureId = "http://www.roblox.com/asset/?id=185441602"
  112. Mesh.Scale = Vector3.new(1, 1, 1)
  113. local speech = Instance.new("Sound",part)
  114. speech.SoundId = "http://www.roblox.com/asset/?id=8614695132"
  115. speech.Volume = 1
  116. local speech2 = Instance.new("Sound",part)
  117. speech2.SoundId = "http://www.roblox.com/asset/?id=8614695132"
  118. speech2.Volume = 1
  119. local nou = Instance.new("Sound",part)
  120. nou.SoundId = "http://www.roblox.com/asset/?id=8623521419"
  121. nou.Volume = 1
  122. local oldtime = 0.1
  123. local oldtime2 = 0.1
  124. local oldtime3 = 0.1
  125. local oldtime4 = 0.1
  126. local talkwait = false
  127. local talkwait2 = false
  128. local function wherego()
  129. coroutine.wrap(function()
  130. if not talkwait then
  131. talkwait = true
  132. local talk = {0,1,3}
  133. local newspeech
  134.  
  135. do repeat
  136. newspeech = talk[math.random(1, #talk)]
  137. wait()
  138. until
  139. newspeech ~= oldtime
  140. end
  141. speech.TimePosition = newspeech
  142. oldtime = newspeech
  143. speech:Play()
  144. if newspeech == 0 then
  145. game:GetService("Chat"):Chat(part, "where you go", "White")
  146. wait(0.8)
  147. speech:Stop()
  148. wait(0.5)
  149. talkwait = false
  150. elseif newspeech == 1 then
  151. game:GetService("Chat"):Chat(part, "stop hiding", "White")
  152. wait(0.95)
  153. speech:Stop()
  154. wait(0.5)
  155. talkwait = false
  156. elseif newspeech == 3 then
  157. game:GetService("Chat"):Chat(part, "i am going to cut you", "White")
  158. wait(1.35)
  159. speech:Stop()
  160. wait(0.5)
  161. talkwait = false
  162. end
  163. end
  164. end)()
  165. end
  166. local cooldowntime = 0
  167. local function ow()
  168. coroutine.wrap(function()
  169. if not talkwait2 then
  170. talkwait2 = true
  171. talkwait = true
  172. speech:Stop()
  173. local talk = {6.55,7.2,8}
  174. local newspeech
  175.  
  176. do repeat
  177. newspeech = talk[math.random(1, #talk)]
  178. wait()
  179. until
  180. newspeech ~= oldtime3
  181. end
  182. speech2.TimePosition = newspeech
  183. oldtime3 = newspeech
  184. speech2:Play()
  185. if newspeech == 6.55 then
  186. game:GetService("Chat"):Chat(part, "ow", "White")
  187. wait(0.5)
  188. speech2:Stop()
  189. wait(0.5)
  190. talkwait2 = false
  191. talkwait = false
  192. elseif newspeech == 7.2 then
  193. game:GetService("Chat"):Chat(part, "stop it", "White")
  194. wait(0.6)
  195. speech2:Stop()
  196. wait(0.5)
  197. talkwait2 = false
  198. talkwait = false
  199. elseif newspeech == 8 then
  200. game:GetService("Chat"):Chat(part, "why", "White")
  201. wait(0.45)
  202. speech2:Stop()
  203. wait(0.5)
  204. talkwait2 = false
  205. talkwait = false
  206. end
  207. end
  208. end)()
  209. end
  210. local function rekt()
  211. coroutine.wrap(function()
  212. if not talkwait2 then
  213. talkwait2 = true
  214. talkwait = true
  215. speech:Stop()
  216. local talk = {10.5,11.8}
  217. local newspeech
  218.  
  219. do repeat
  220. newspeech = talk[math.random(1, #talk)]
  221. wait()
  222. until
  223. newspeech ~= oldtime4
  224. end
  225. speech2.TimePosition = newspeech
  226. oldtime4 = newspeech
  227. speech2:Play()
  228. if newspeech == 10.5 then
  229. game:GetService("Chat"):Chat(part, "haha get rekt", "White")
  230. wait(1.15)
  231. speech2:Stop()
  232. wait(0.5)
  233. talkwait2 = false
  234. talkwait = false
  235. elseif newspeech == 11.8 then
  236. game:GetService("Chat"):Chat(part, "i SAW that was coming unlike you", "White")
  237. speech2.Ended:Wait()
  238. wait(0.5)
  239. talkwait2 = false
  240. talkwait = false
  241. end
  242. end
  243. end)()
  244. end
  245. local function gonnaget()
  246. coroutine.wrap(function()
  247. if not talkwait then
  248. talkwait = true
  249. local talk = {2.15,4.5,8.65}
  250. local newspeech
  251.  
  252. do repeat
  253. newspeech = talk[math.random(1, #talk)]
  254. wait()
  255. until
  256. newspeech ~= oldtime2
  257. end
  258. speech.TimePosition = newspeech
  259. oldtime2 = newspeech
  260. speech:Play()
  261. if newspeech == 2.15 then
  262. game:GetService("Chat"):Chat(part, "there you are", "White")
  263. wait(0.7)
  264. speech:Stop()
  265. wait(0.5)
  266. talkwait = false
  267. elseif newspeech == 4.5 then
  268. game:GetService("Chat"):Chat(part, "stop running and let me cut you", "White")
  269. wait(1.9)
  270. speech:Stop()
  271. wait(0.5)
  272. talkwait = false
  273. elseif newspeech == 8.65 then
  274. game:GetService("Chat"):Chat(part, "let me cut you or you ugly", "White")
  275. wait(1.7)
  276. speech:Stop()
  277. wait(0.5)
  278. talkwait = false
  279. end
  280. end
  281. end)()
  282. end
  283. local dmg = 7.5
  284. local speed = 5
  285. local function death(otherPart)
  286. pcall(function()
  287. if not dead then
  288. local partParent = otherPart.Parent
  289. local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
  290. if not table.find(roombas,humanoid) and humanoid ~= owner.Character.Humanoid and humanoid then
  291. humanoid.Health = humanoid.Health - dmg
  292. if humanoid.Health <= 0 then
  293. rekt()
  294. end
  295. end
  296. end
  297. end)
  298. end
  299. local times = 0
  300. local currenthealth = humfake.Health
  301. humfake.HealthChanged:Connect(function(newHealth)
  302. if newHealth <= 69 and times == 0 then
  303. nou:Play()
  304. dead = true
  305. speech:Stop()
  306. speech2:Stop()
  307. game:GetService("Chat"):Chat(part, "you fool", "White")
  308. coroutine.wrap(function()
  309. while dead do
  310. task.wait()
  311. talkwait = true
  312. talkwait2 = true
  313. end
  314. end)()
  315. times = 1
  316. dmg = 12.5
  317. speed = 0
  318. wait(1.10)
  319. game:GetService("Chat"):Chat(part, "this isnt even my max power", "White")
  320. wait(2.48)
  321. nou.SoundId = "http://www.roblox.com/asset/?id=1655262564"
  322. nou:Play()
  323. humfake.MaxHealth = 420
  324. humfake.Health = 420
  325. cloakmeter2.Size = UDim2.new(humfake.Health/humfake.MaxHealth,0,1,0)
  326. nou.Ended:Wait()
  327. wait(0.25)
  328. nou.SoundId = "http://www.roblox.com/asset/?id=4953447383"
  329. nou:Play()
  330. nou.Ended:Wait()
  331. wait(0.5)
  332. dead = false
  333. speed = 16
  334. nou.Volume = 0.25
  335. nou.SoundId = "http://www.roblox.com/asset/?id=417478989"
  336. nou.Looped = true
  337. nou:Play()
  338. task.wait()
  339. talkwait = false
  340. talkwait2 = false
  341. end
  342. cloakmeter2.Size = UDim2.new(humfake.Health/humfake.MaxHealth,0,1,0)
  343. if newHealth > currenthealth then
  344. currenthealth = newHealth
  345. elseif newHealth < currenthealth then
  346. currenthealth = newHealth
  347. ow()
  348. end
  349. end)
  350. local iforgor = {}
  351. chainsaw.Touched:Connect(death)
  352. coroutine.wrap(function()
  353. while true do
  354. wait()
  355. if not dead then
  356. for i,who in pairs(workspace:GetChildren()) do
  357. coroutine.wrap(function()
  358. pcall(function()
  359. if who:IsA("Model") and who:FindFirstChildWhichIsA("Humanoid") and who ~= owner.Character then
  360. local raycastParams = RaycastParams.new()
  361. raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
  362. raycastParams.FilterDescendantsInstances = {roombas,who}
  363. raycastParams.IgnoreWater = true
  364. local result = workspace:Raycast(part.Position, CFrame.new(part.Position,who:FindFirstChildWhichIsA("Part").Position).lookVector * (part.Position - who:FindFirstChildWhichIsA("Part").Position).Magnitude, raycastParams)
  365. if result then
  366. table.insert(iforgor,who)
  367. else
  368. table.remove(iforgor,table.find(iforgor,who))
  369. end
  370. end
  371. end)
  372. end)()
  373. end
  374. end
  375. end
  376. end)()
  377. local bf2 = Instance.new("BodyVelocity", part)
  378. bf2.MaxForce = Vector3.new(5000,0,5000)
  379. bf2.Velocity = Vector3.new()
  380. local bg = Instance.new("BodyGyro",part)
  381. bg.D = 50
  382. bg.P = 10000
  383. bg.MaxTorque = Vector3.new(0, 400000, 0)
  384. local bg2 = Instance.new("BodyGyro",part)
  385. bg2.P = 1000000000
  386. bg2.MaxTorque = Vector3.new(math.huge, 0, math.huge)
  387. local function move(target)
  388. if times == 1 then
  389. cooldowntime += 1
  390. if cooldowntime >= 300 then
  391. cooldowntime = 0
  392. dead = true
  393. dmg = 0
  394. speed = 0
  395. coroutine.wrap(function()
  396. while dead do
  397. task.wait()
  398. talkwait = true
  399. talkwait2 = true
  400. end
  401. end)()
  402. speech:Stop()
  403. speech2:Stop()
  404. wait(3)
  405. dead = false
  406. dmg = 12.5
  407. speed = 18
  408. talkwait = false
  409. talkwait2 = false
  410. end
  411. end
  412. if not dead then
  413. local dir = (target.Position - part.Position).unit
  414. local spawnPos = part.Position
  415. local pos = spawnPos + (dir * 1)
  416. bg.CFrame = CFrame.new(pos, pos + dir)
  417. bf2.Velocity = part.CFrame.lookVector * math.clamp((part.Position - target.Position).Magnitude,0,speed)
  418. else
  419. bf2.Velocity = Vector3.new()
  420. end
  421. end
  422.  
  423. local function findNearestTorso(pos)
  424. local list = game.Workspace:GetChildren()
  425. local torso = nil
  426. local dist = 100
  427. local temp = nil
  428. local human = nil
  429. local temp2 = nil
  430. for x = 1, #list do
  431. temp2 = list[x]
  432. if (temp2.className == "Model") and (temp2 ~= model) and temp2 ~= owner.Character and not table.find(iforgor,temp2) then
  433. temp = temp2:findFirstChild("Head")
  434. human = temp2:findFirstChild("Humanoid")
  435. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  436. if (temp.Position - pos).magnitude < dist then
  437. torso = temp
  438. dist = (temp.Position - pos).magnitude
  439. end
  440. end
  441. end
  442. end
  443. return torso
  444. end
  445. coroutine.wrap(function()
  446. while true do
  447. local torso = findNearestTorso(part.Position)
  448. if torso~=nil then
  449. move(torso)
  450. if not talkwait2 then
  451. gonnaget()
  452. end
  453. else
  454. if not talkwait2 then
  455. wherego()
  456. end
  457. end
  458. wait()
  459. end
  460. end)()
  461. coroutine.wrap(function()
  462. while true do
  463. wait()
  464. if humfake.Health <= 0 then
  465. if not dead then
  466. dead = true
  467. bf2.Velocity = Vector3.new()
  468. for i = 1, 100 do
  469. wait(0.0325)
  470. talkwait = true
  471. talkwait2 = true
  472. speech:Stop()
  473. speech2:Stop()
  474. local tweenService = game:GetService("TweenService")
  475. local Flame3 = Instance.new("SpawnLocation", script)
  476. Flame3.Size = Vector3.new(0.35,0.35,0.35)
  477. Flame3.Neutral = false
  478. Flame3.Enabled = false
  479. Flame3.CFrame = part.CFrame * CFrame.new(0,1,0)
  480. Flame3.CanCollide = false
  481. Flame3.Color = Color3.fromRGB(255, 50, 50)
  482. Flame3.Material = "Neon"
  483. Flame3.Anchored = true
  484. Flame3.Name = "Flameslol"
  485. game:GetService("Debris"):AddItem(Flame3,.25)
  486. local timeToFade6 = .25
  487. local object6 = Flame3
  488. local tweenInfo6 = TweenInfo.new(timeToFade6)
  489. local goal8 = {}
  490. goal8.CFrame = Flame3.CFrame * CFrame.new(math.random(-.5,.5),1,math.random(-.5,.5)) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  491. local tween8 = tweenService:Create(object6, tweenInfo6, goal8)
  492. tween8:Play()
  493. local goal9 = {}
  494. goal9.Color = Color3.fromRGB(255, 155, 0)
  495. local tween9 = tweenService:Create(object6, tweenInfo6, goal9)
  496. local goal10 = {}
  497. goal10.Transparency = .25
  498. local tween10 = tweenService:Create(object6, tweenInfo6, goal10)
  499. tween9:Play()
  500. tween10:Play()
  501. end
  502. model:Destroy()
  503. break
  504. end
  505. end
  506. if not dead and times == 1 then
  507. for i = 1, 100 do
  508. wait(0.0325)
  509. local tweenService = game:GetService("TweenService")
  510. local Flame3 = Instance.new("SpawnLocation", script)
  511. Flame3.Size = Vector3.new(0.35,0.35,0.35)
  512. Flame3.Neutral = false
  513. Flame3.Enabled = false
  514. Flame3.CFrame = part.CFrame * CFrame.new(0,1,0)
  515. Flame3.CanCollide = false
  516. Flame3.Transparency = 0.35
  517. Flame3.Color = Color3.fromRGB(250, 250, 250)
  518. Flame3.Material = "Neon"
  519. Flame3.Anchored = true
  520. Flame3.Name = "Flameslol"
  521. game:GetService("Debris"):AddItem(Flame3,.5)
  522. local timeToFade6 = .5
  523. local object6 = Flame3
  524. local tweenInfo6 = TweenInfo.new(timeToFade6)
  525. local goal8 = {}
  526. goal8.CFrame = Flame3.CFrame * CFrame.new(math.random(-.5,.5),3,math.random(-.5,.5)) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  527. local tween8 = tweenService:Create(object6, tweenInfo6, goal8)
  528. tween8:Play()
  529. local goal9 = {}
  530. goal9.Color = Color3.fromRGB(75, 75, 75)
  531. local tween9 = tweenService:Create(object6, tweenInfo6, goal9)
  532. local goal10 = {}
  533. goal10.Transparency = .5
  534. local tween10 = tweenService:Create(object6, tweenInfo6, goal10)
  535. tween9:Play()
  536. tween10:Play()
  537. end
  538. end
  539. end
  540. end)()
  541. end)
  542. end)
Add Comment
Please, Sign In to add comment