Advertisement
DontAskme

mop

Sep 15th, 2017
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.21 KB | None | 0 0
  1. --"Saz"
  2. --For Qaeo
  3.  
  4. wait(2)
  5.  
  6. cccc=game:GetService("Lighting").Mop:Clone()
  7. cccc.Parent=game.Players.LocalPlayer.Backpack
  8. script.Parent=cccc
  9. cccc.WAT.Parent=script
  10. cccc.Te.Parent=script
  11. cccc.CamShake.Parent=script
  12. cccc.REKT.Parent=script
  13. cccc.PuddleScript.Parent=script
  14. Tool=script.Parent
  15.  
  16. debounce=0 --disgusting
  17. filt={}
  18. puddles=0
  19. mode=true --true == mop, false == whack-an-idiot
  20. normGrip=CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
  21.  
  22. makePuddle=function()
  23. R=Ray.new(Tool.MoppityMop.MopEnd.Sponge.Position,Vector3.new(0,-100,0))
  24. par,loc=workspace:FindPartOnRayWithIgnoreList(R,filt)
  25. print((Tool.MoppityMop.MopEnd.Sponge.Position-loc).magnitude)
  26. if (Tool.MoppityMop.MopEnd.Sponge.Position-loc).magnitude<=1 then
  27. p=Instance.new("Part",workspace)
  28. p.Name="420slipit"
  29. p.BrickColor=BrickColor.new("Medium blue")
  30. p.Transparency=.3
  31. p.Reflectance=.3
  32. p.Material="SmoothPlastic"
  33. p.formFactor="Custom"
  34. p.Size=Vector3.new(3,.2,3)
  35. p.CFrame=CFrame.new(loc) + Vector3.new(0,.06,0)
  36. m=Instance.new("CylinderMesh")
  37. m.Scale=Vector3.new(1,.2,1)
  38. m.Offset=Vector3.new(0,-.05,0)
  39. m.Parent=p
  40. p.CanCollide=false
  41. p.Anchored=true
  42.  
  43. s=Instance.new("Sparkles")
  44. s.SparkleColor=Color3.new(1.1,1.1,1.1)
  45. s.Enabled=false
  46. s.Parent=p
  47.  
  48. s=script.PuddleScript:clone()
  49. t=Instance.new("StringValue",s)
  50. t.Name="Owner"
  51. t.Value=Tool.Parent.Name
  52. s.Disabled=false
  53. s.Parent=p
  54. game:GetService("Debris"):AddItem(p,60)
  55. debounce=6
  56. puddles=puddles+1
  57. coroutine.resume(coroutine.create(function(p)
  58. repeat wait() until p.Parent==nil
  59. puddles=puddles-1
  60. end),p)
  61. r=math.random(130,170)/100
  62. math.randomseed(tick())
  63. Tool.MoppityMop.MopEnd.Sponge.Mop.Pitch=r
  64. Tool.MoppityMop.MopEnd.Sponge.Mop:Play()
  65. else
  66. debounce=3
  67. end
  68. end
  69. GetNubs=function()
  70. scrubs={}
  71. for _,v in pairs(game.Workspace:children()) do
  72. if v:FindFirstChild("Humanoid")~=nil and v:FindFirstChild("Torso")~=nil and v.Name~=game.Players.LocalPlayer.Name then
  73. table.insert(scrubs,v)
  74. end
  75. end
  76. return scrubs
  77. end
  78. GetNubsInRadius=function(pos,radius)
  79. radius=radius
  80. scrubs=GetNubs()
  81. filtered={}
  82. for _,v in pairs(scrubs) do
  83. if v:FindFirstChild("Torso")~=nil then
  84. if (v.Torso.Position-pos).magnitude<=radius then
  85. table.insert(filtered,v)
  86. end
  87. end
  88. end
  89. return filtered
  90. end
  91. charging=false
  92. charge=0
  93. maxcharge=150
  94. chargerate=2
  95. swingfunc=function()
  96. if charging then return end
  97. charge=0
  98. R=game.Players.LocalPlayer.Character.Torso["Right Shoulder"]
  99. RC0=R.C0
  100. while isButtonDown do
  101. if charge < maxcharge then
  102. charge=charge+chargerate
  103. else
  104. if Tool.Handle:FindFirstChild("Fire")==nil then
  105. f=Instance.new("Fire",Tool.Handle)
  106. f.Size=10
  107. f.Heat=-25
  108. end
  109. end
  110. R.C0=RC0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(charge/2))
  111. wait(.03)
  112. end
  113. swingtime=4
  114. upval=(60 + charge / 5) / swingtime
  115. print(upval)
  116. for i=1, swingtime do
  117. wait(.03)
  118. R.C0=RC0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(charge/2) + math.rad(upval * i))
  119. end
  120. shakedist=40
  121. hitsize=4.4
  122. if charge==maxcharge then
  123. --sus
  124. p=Instance.new("Sound",Tool.Handle)
  125. p.Volume=2
  126. p.SoundId="http://www.roblox.com/asset/?id=195723714"
  127. p:Play()
  128. game:GetService("Debris"):AddItem(p,5)
  129. wait(1)
  130. scrubs=GetNubsInRadius(game.Players.LocalPlayer.Character.Torso.Position,shakedist)
  131. for _,v in pairs(scrubs) do
  132. if game.Players:GetPlayerFromCharacter(v) ~= nil then
  133. s=script.CamShake:clone()
  134. s.intensity.Value = 550
  135. s.times.Value = 25
  136. s.Disabled=false
  137. s.Parent=v
  138. end
  139. end
  140. s=script.CamShake:clone()
  141. s.intensity.Value = 550
  142. s.times.Value = 25
  143. s.Disabled=false
  144. s.Parent=game.Players.LocalPlayer.Character
  145. print(":>")
  146. wait(1)
  147. game:GetService("Debris"):AddItem(Tool.Handle.Fire,1)
  148. end
  149. num = charge/2 + upval * swingtime
  150. for i=1,5 do
  151. wait(.03)
  152. R.C0=RC0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(num) - math.rad((num+75) / 5 * i))
  153. end
  154.  
  155. p=Instance.new("Sound",Tool.Handle)
  156. p.Volume=1
  157. p.Pitch=1.3 - charge / 600
  158. p.SoundId="http://www.roblox.com/asset/?id=191395631"
  159. p:Play()
  160. game:GetService("Debris"):AddItem(p,5)
  161. num = (charge/2 + upval * swingtime - (num+75)) / 10
  162. if charge==maxcharge then
  163. doik=true
  164. else
  165. doik=false
  166. end
  167. for i=1, 10 do
  168. for _,v in pairs(GetNubsInRadius(Tool.MoppityMop.MopEnd.Sponge.Position,hitsize)) do
  169. print("HIT: "..v.Name)
  170. if v:FindFirstChild("Scrubnub") == nil then
  171. p=Instance.new("Sound",v:FindFirstChild("Torso"))
  172. p.Volume=1
  173. p.Pitch=1.15 - charge / 350
  174. p.SoundId="http://www.roblox.com/asset/?id=173818824"
  175. p:Play()
  176. game:GetService("Debris"):AddItem(p,5)
  177.  
  178. t=Instance.new("BoolValue",v)
  179. t.Name="Scrubnub"
  180. game:GetService("Debris"):AddItem(t,1)
  181.  
  182. if doik==false then
  183.  
  184. if charge/2 + 10 >= v.Humanoid.Health then
  185. ded=true
  186. else
  187. ded=false
  188. end
  189.  
  190. v.Torso.Velocity = Vector3.new(0,-40,0)
  191. v.Humanoid:TakeDamage(charge/2 + 20)
  192.  
  193. if ded then
  194.  
  195. wait(.37)
  196.  
  197. startpos=v:GetModelCFrame()
  198.  
  199. RR=Ray.new(startpos.p,Vector3.new(0,-200,0))
  200. par,loc=workspace:FindPartOnRayWithIgnoreList(RR,filt)
  201.  
  202. grave=script.WAT.ThatMopGuiHandler.Graves["Grave"..math.random(1,5)]:clone()
  203.  
  204. grave.PrimaryPart=grave.Base
  205. grave:SetPrimaryPartCFrame(CFrame.new(loc)*CFrame.fromEulerAnglesXYZ(0,math.pi/2*math.random(0,4),0))
  206.  
  207. grave.Parent=v
  208. for _,v in pairs(grave:children()) do
  209. v.Transparency=0
  210. end
  211.  
  212. v:BreakJoints()
  213. for _,v in pairs(v:children()) do
  214. if v.className~="Humanoid" and v:IsA("BasePart")==false then
  215. if v~=grave and v.Name~="Scrubnub" then
  216. v:Remove()
  217. end
  218. end
  219. if v:IsA("BasePart")==true then
  220. v.Anchored=true
  221. v.CanCollide=false
  222. v.Transparency=1
  223. v.CFrame=grave.PrimaryPart.CFrame
  224. end
  225. end
  226.  
  227. s=Instance.new("Sound",grave.PrimaryPart)
  228. if math.random(0,100)>80 then
  229. s.SoundId="http://www.roblox.com/asset/?id=153259684"
  230. else
  231. s.SoundId="http://www.roblox.com/asset/?id=154677261"
  232. end
  233. s.Volume=1
  234. s.Pitch=1
  235. s:Play()
  236. game:GetService("Debris"):AddItem(s,5)
  237.  
  238. end
  239.  
  240. else
  241.  
  242. m=Instance.new("Model",workspace)
  243. m.Name="Illuminaughty"
  244. p=Instance.new("Part",m)
  245. p.Name="REK"
  246. p.TopSurface=0
  247. p.BottomSurface=0
  248. p.Anchored=true
  249. p.CanCollide=false
  250. p.Transparency=1
  251. p.CFrame=v.Torso.CFrame
  252. b=Instance.new("BillboardGui",p)
  253. b.Size=UDim2.new(50,0,50,0)
  254. b.Adornee=p
  255. ss=script.REKT:clone()
  256. ss.Disabled=false
  257. ss.Parent=b
  258.  
  259. lel={"DAMN SON","REKT","SHREKT","4STOCK'D","GG NO RE","LATER'D","WOMBO COMBO","OUTPLAYED","SKILL"}
  260.  
  261. l=Instance.new("TextLabel",b)
  262. l.Name="Toplel"
  263. l.Size=UDim2.new(1,0,1,0)
  264. l.Position=UDim2.new(0,0,0,-2)
  265. l.BackgroundTransparency=1
  266. l.FontSize="Size24"
  267. l.Text=lel[math.random(1,#lel)]
  268. l.TextScaled=true
  269. coroutine.resume(coroutine.create(function(f,x)
  270. local joj=false
  271. local e = 0
  272. while f.Parent~=nil and e < 195 do
  273. wait(.03)
  274. joj=not joj
  275. if joj then
  276. f.TextColor3=Color3.new(1,0,0)
  277. else
  278. f.TextColor3=Color3.new(1,.7,.2)
  279. end
  280. if x==0 then
  281. f.Rotation=math.deg(math.sin(time() * 36) / 2.8)
  282. elseif x == 1 then
  283. f.Rotation=f.Rotation + 7
  284. elseif x == 2 then
  285. f.Parent.StudsOffset=f.Parent.StudsOffset + Vector3.new(0,math.deg(math.cos(e) / 10),0)
  286. end
  287. e=e+1
  288. end
  289. for i=1, 20 do
  290. f.TextTransparency=i/20
  291. joj=not joj
  292. if joj then
  293. f.TextColor3=Color3.new(1,0,0)
  294. else
  295. f.TextColor3=Color3.new(1,.7,.2)
  296. end
  297. f.Rotation=f.Rotation + i
  298. wait()
  299. end
  300. end),l,math.random(0,2))
  301.  
  302. e=Instance.new("Explosion",workspace)
  303. e.BlastRadius=10
  304. e.DestroyJointRadiusPercent = 0
  305. e.BlastPressure=e.BlastPressure * 2.2
  306. e.Position=p.Position
  307. tr=math.random(0,2)
  308. if tr==0 then
  309.  
  310. ps=Instance.new("Sound",p)
  311. ps.Volume=1.5
  312. ps.Pitch=1
  313. ps.SoundId="http://www.roblox.com/asset/?id=195737599"
  314. ps.MaxDistance=math.huge
  315. ps:Play()
  316. game:GetService("Debris"):AddItem(ps,5)
  317.  
  318. elseif tr==1 then
  319.  
  320. ps=Instance.new("Sound",p)
  321. ps.Volume=.9
  322. ps.Pitch=1
  323. ps.SoundId="http://www.roblox.com/asset/?id=160423437"
  324. ps:Play()
  325. game:GetService("Debris"):AddItem(ps,5)
  326.  
  327. elseif tr==2 then
  328.  
  329. ps=Instance.new("Sound",p)
  330. ps.Volume=1
  331. ps.Pitch=1
  332. ps.SoundId="http://www.roblox.com/asset/?id=196980915"
  333. ps:Play()
  334. game:GetService("Debris"):AddItem(ps,5)
  335.  
  336. end
  337.  
  338. ps=Instance.new("Sound",p)
  339. ps.Volume=1
  340. ps.Pitch=1.2
  341. ps.SoundId="http://www.roblox.com/asset/?id=163680447"
  342. ps:Play()
  343. game:GetService("Debris"):AddItem(ps,5)
  344.  
  345. ids={185386145,185386156,185386168,181240874}
  346. p=Instance.new("Sound",p)
  347. p.SoundId="http://www.roblox.com/asset/?id="..ids[math.random(1,4)]
  348. p.Volume=1
  349. p:Play()
  350. coroutine.resume(coroutine.create(function(l)
  351. wait(11)
  352. if l~=nil then
  353. if l.Parent~=nil then
  354. l:Stop()
  355. wait(.5)
  356. l:Remove()
  357. end
  358. end
  359. end),p)
  360.  
  361. for __,vv in pairs(v:children()) do
  362. if vv.className=="Hat" then
  363. if vv:FindFirstChild("Handle") ~= nil then
  364. vv.Handle:BreakJoints()
  365. vv.Handle.Velocity=Vector3.new(math.random(-20,20),math.random(0,60),math.random(-20,20)) + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * math.random(40,60)
  366. vv.Handle.RotVelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * math.random(10,30)
  367. end
  368. end
  369. if vv:IsA("BasePart") then
  370. vv:BreakJoints()
  371. vv.Velocity=Vector3.new(math.random(-80,80),math.random(0,200),math.random(-80,80)) + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * math.random(40,60)
  372. vv.RotVelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40)) + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * math.random(10,30)
  373. end
  374. end
  375.  
  376. end
  377. end
  378. end
  379. R.C0=R.C0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-num))
  380. wait(.03)
  381. end
  382. print(num)
  383. wait(.5)
  384. R.C0=RC0
  385. print("SUS",charge)
  386. end
  387. blowingup=false
  388. sitoop=function(key)
  389. if game.Players.LocalPlayer.Name=="Qaeo" or game.Players.LocalPlayer.Name=="SazErenos" then
  390. if key=="m" and blowingup==false then --boop
  391. blowingup=true
  392. m=Tool.MoppityMop
  393. m.Welds.Disabled=true
  394. m.Parent=workspace
  395. for _,v in pairs(m.MopEnd:children()) do
  396. if v:IsA("BasePart") then
  397. v.CanCollide=true
  398. end
  399. end
  400. for _,v in pairs(m.MopHandle:children()) do
  401. if v:IsA("BasePart") then
  402. v.CanCollide=true
  403. end
  404. end
  405. Tool.Handle:BreakJoints()
  406. v=Instance.new("BodyVelocity",m.MopEnd.Joint)
  407. v.velocity=Tool.Parent.Torso.CFrame.lookVector*15+Vector3.new(0,10,0)
  408. v.P=5000
  409. v.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  410. v.Parent=m.MopEnd.Joint
  411. game:GetService("Debris"):AddItem(v,.4)
  412. s=script.WAT:clone()
  413. s.Disabled=false
  414. s.Parent=m
  415.  
  416. wait(.25)
  417.  
  418. Tool:Remove()
  419. end
  420. elseif key=="z" and blowingup==false then
  421. mode=not mode
  422. end
  423. end
  424.  
  425. isButtonDown=false
  426.  
  427. onEquipLocal=function(mouse)
  428. mouse.KeyDown:connect(sitoop)
  429. Grip=nil
  430. while Grip==nil do
  431. if game.Players.LocalPlayer.Character["Right Arm"]:FindFirstChild("RightGrip")~=nil then
  432. Grip=game.Players.LocalPlayer.Character["Right Arm"]:FindFirstChild("RightGrip")
  433. end
  434. wait()
  435. end
  436. print("Grip located")
  437. end
  438. Tool.Equipped:connect(onEquipLocal)
  439.  
  440. Tool.Activated:connect(function() if blowingup==false then isButtonDown=true end end)
  441. Tool.Deactivated:connect(function() isButtonDown=false end)
  442.  
  443. check=54
  444. checkat=55
  445. while true do
  446. if isButtonDown==true and Tool.Parent.className=="Model" and mode then
  447. if debounce==0 then
  448. if puddles<40 then
  449. makePuddle()
  450. end
  451. else
  452. debounce=debounce-1
  453. end
  454. end
  455. if mode==false and isButtonDown then
  456. swingfunc()
  457. end
  458. if mode and Grip then
  459. Grip.C0=normGrip
  460. elseif not mode and Grip then
  461. Grip.C0=normGrip*CFrame.Angles(math.pi/1.7,0,0)*CFrame.new(.2,.2,0)
  462. end
  463. check=check+1
  464. if check>=checkat and Tool.Parent.className=="Model" then
  465. check=0
  466.  
  467. lel={}
  468. filt={}
  469. lol=function(p)
  470. for _,v in pairs(p) do
  471. table.insert(lel,v)
  472. if #v:children()>0 then
  473. lol(v:children())
  474. end
  475. end
  476. end
  477. lol(workspace:children())
  478. for _,v in pairs(lel) do
  479. if v:IsA("BasePart") then
  480. if v.CanCollide==false or v.Parent:FindFirstChild("Humanoid") or v.Parent.className=="Hat" then
  481. table.insert(filt,v)
  482. end
  483. end
  484. end
  485. lel={} --clear cache
  486.  
  487. end
  488. if puddles==40 then
  489. Tool.MoppityMop.MopEnd.Joint.JointWeld.DesiredAngle=math.rad(-20)
  490. else
  491. Tool.MoppityMop.MopEnd.Joint.JointWeld.DesiredAngle=math.rad(20)
  492. end
  493. wait()
  494. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement