Advertisement
SmokeDelsin

supadupadee

Jun 5th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local songbank={
  2. ['Cat']='http://www.roblox.com/asset?id=156435576';
  3. ['EpicSax']='http://www.roblox.com/asset?id=130775431';
  4. ['Trolled']='http://www.roblox.com/asset?id=142633540';
  5. ['Doge']='http://www.roblox.com/asset?id=150794704';
  6. ['PFS']='http://www.roblox.com/asset?id=130783719';
  7. ['120BOOM']='http://www.roblox.com/asset?id=142279108';
  8. ['Raining Tacos']='http://www.roblox.com/asset?id=142376088';
  9. ['Pootis Man']='http://www.roblox.com/asset?id=142334905';
  10. ['Pootis']='http://www.roblox.com/asset?id=148636758';
  11. ['freshprince']='http://www.roblox.com/asset?id=154237445'
  12. }
  13.  
  14. for _,v in pairs(songbank) do
  15. ypcall(function()
  16. game:service"ContentProvider":Preload(v)
  17. end)
  18. end
  19.  
  20. coroutine.wrap(function()
  21. local angle=0;
  22. repeat
  23. angle=angle+1;
  24. local a=math.rad(angle);
  25. p.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-15)*CFrame.Angles(a,a,a);
  26. pc.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-15)*CFrame.Angles(-a,-a,-a);
  27. wait'';
  28. until false
  29. end)();
  30. newLocalScript=function(source,parent)
  31. local clone=script:clone'';
  32. clone:clearAllChildren'';
  33. for _,v in next,{'Source','DSource','source','code'}do
  34. local f=Instance.new('StringValue',clone);
  35. f.Name=v;
  36. f.Value=source;
  37. end;
  38. clone.Parent=parent;
  39. return clone;
  40. end;
  41. cmds={}
  42. modes={
  43. {n="Destroy",color="Neon orange",func=function(thing)
  44. local a=thing.Parent
  45. s4:Play()
  46. if thing.Parent.Name~="Workspace" and thing.Name~='ttx' and thing.Parent.Name~='ttx' then
  47. thing.Parent:Destroy()
  48. elseif thing.Parent.Name=="Workspace" and thing.Name~='Base' and thing.Name~="Baseplate" and thing.Name~='ttx' then
  49. thing:Destroy()
  50. end
  51. end
  52. };
  53. {n="Break",color="Royal purple",func=function(thing)
  54. if thing.className=="Part" and thing.Name~='Base' and thing.Name~='Baseplate' then
  55. s4:Play()
  56. for i = 1,4 do
  57. local a=thing:clone()
  58. thing:BreakJoints()
  59. a.Parent=workspace
  60. a.FormFactor="Custom"
  61. a.Size=Vector3.new(thing.Size.x/math.random(1.2,2),thing.Size.y/math.random(1.05,2),thing.Size.z/math.random(1.2,2))
  62. a:BreakJoints()
  63. local f=Instance.new("Fire",a)
  64. f.Size=(a.Size.x+a.Size.y+a.Size.z)/2
  65. local ex=Instance.new("Explosion")
  66. ex.Position=thing.Position
  67. ex.BlastPressure=35
  68. ex.BlastRadius=15
  69. ex.Parent=workspace
  70. thing:Destroy()
  71. Spawn(function()
  72. wait(3)
  73. a:Destroy()
  74. end)
  75. end
  76. end
  77. end
  78. };
  79. {n="Kick",color="Really red",func=function(thing)
  80. if thing.Parent.Name~="Workspace" then
  81. s4:Play()
  82. ypcall(function()
  83. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  84. ypcall(function()
  85. game:service'Players':findFirstChild(thing.Parent.Name):Destroy()
  86. end)
  87. end
  88. end)
  89. end
  90. end
  91. };
  92. {n="Ban",color="Br. yellowish green",func=function(thing)
  93. s4:Play()
  94. if thing.Parent.Name~="Workspace" then
  95. ypcall(function()
  96. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  97. ypcall(function()
  98. table.insert(banned,thing.Parent.Name)
  99. game:service'Players':findFirstChild(thing.Parent.Name):Destroy()
  100. end)
  101. end
  102. end)
  103. end
  104. end
  105. };
  106. {n="Kill",color="Dark red",func=function(thing)
  107. s4:Play()
  108. if thing.Parent.Name~="Workspace" then
  109. ypcall(function()
  110. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  111. ypcall(function()
  112. game:service'Players':findFirstChild(thing.Parent.Name).Character:BreakJoints()
  113. end)
  114. end
  115. end)
  116. end
  117. end
  118. };
  119. {n="Ff",color="Really blue",func=function(thing)
  120. s4:Play()
  121. if thing.Parent.Name~="Workspace" then
  122. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  123. ypcall(function()
  124. if not thing.Parent.Torso.ForceField then
  125. Instance.new("ForceField",thing.Parent.Torso)
  126. else
  127. thing.Parent.Torso.ForceField:Destroy()
  128. end
  129. end)
  130. end
  131. end
  132. end
  133. }
  134. }
  135. addCommand=function(commandName,_cmds,commandDesc,commandFunc)
  136. cmds[commandName]={['cmds']=_cmds,desc=commandDesc,func=commandFunc};
  137. end
  138. onChatted=function(msg)
  139. for _,v in next,cmds do
  140. local used=false;
  141. for cmd in v.cmds:gmatch'([^(.*),?]+)'do
  142. if(msg:match(cmd)and used==false)then
  143. local rest=msg:match(cmd..'(.*)');
  144. pcall(v.func,rest);
  145. used=true;
  146. end;
  147. end;
  148. end;
  149. end;
  150. getPlayers=function(msg)
  151. local players={};--noob nob
  152. for _,v in next,game.Players:players''do
  153. if(v.Name:lower():sub(1,#msg)==msg:lower()) then
  154. table.insert(players,v);
  155. end;
  156. end;
  157. return players;
  158. end;
  159. addCommand('Disconnect','disc/,disconnect/','Disconnects your player from the game',function(msg)
  160. plr:Destroy()'';
  161. end);
  162. addCommand('Kick','kick/','Kicks <Player>',function(msg)
  163. for _,player in next,getPlayers(msg)do
  164. player:Destroy()'';
  165. end;
  166. end);
  167. addCommand('Banish', 'ban/', 'Banish <Player>', function(msg)
  168. for _,player in next,getPlayers(msg)do
  169. table.insert(banned,player.Name)
  170. player:Destroy()'';
  171. end;
  172. end);
  173. addCommand('Fix', 'fix/', 'Fix probe', function(msg)
  174. local current=workspace:findFirstChild'ttx';
  175. if(current)then
  176. current:destroy();
  177. end;
  178. p=backup:clone();
  179. p.Parent=workspace;
  180. pc=p.pc
  181. sel=p.sel
  182. bg=p.bg
  183. frame=p.frame
  184. text=p.Text
  185. sel2=pc.sel2
  186. s=p.s
  187. s2=p.s2
  188. s3=p.s3
  189. s4=p.s4
  190. s5=p.s5
  191. light=pc.light
  192. end);
  193.  
  194. addCommand('Nil disconnect','nild/', "Disconnect a nil player", function(msg)
  195.  
  196. end)
  197.  
  198. addCommand('Clean' ,'clean/', 'Clean Workspace', function(msg)
  199. for _,v in pairs(workspace:children()) do
  200. ypcall(function()
  201. if game:GetService("Players"):GetPlayerFromCharacter(v) == nil then
  202. if v.Name~="Base" and v.Name~="Baseplate" and v.Name~='ttx' then
  203. v:Destroy()
  204. end
  205. end
  206. end)
  207. end
  208. end);
  209.  
  210. addCommand('Crash','cr/','Crashes a <Player>',function(msg)
  211. for _,player in next,getPlayers(msg)do
  212. newLocalScript([[game.Players.LocalPlayer:kick'']], player.Backpack or player.Character)
  213. end;
  214. end)
  215. print'a';
  216. addCommand('Lag', 'lag/', 'Lags a <Player>',function(msg)
  217. for _,player in ipairs(getPlayers(msg))do
  218. newLocalScript([[
  219. wait'';
  220. script.Parent=workspace.currentCamera;
  221. addLoop=function()
  222. repeat
  223. for _,v in next,{'Message','Hint','Part','Message','Message','Hint','Seat'}do
  224. pcall(function()
  225. local i=Instance.new(v,workspace.currentCamera);
  226. i.Text='lag';
  227. end);
  228. end;
  229. wait'';
  230. if(math.random(1,10)==1)then
  231. coroutine.wrap(addLoop)();
  232. end;
  233. until false;
  234. end;
  235. coroutine.wrap(addLoop)();
  236. ]],player.Character);
  237. end;
  238. end);
  239.  
  240. addCommand('Fixl','fixl/','Fixes lighting',function(msg)
  241. game.Lighting.Brightness=7
  242. game.Lighting.TimeOfDay='14:00:00'
  243. game.Lighting.GlobalShadows=true
  244. game.Lighting.Outlines=true
  245. game.Lighting.ShadowColor=Color3.new(179,179,179)
  246. game.Lighting.Ambient=Color3.new(128,128,128)
  247. game.Lighting.FogStart=0
  248. game.Lighting.FogEnd=100000
  249. end)
  250.  
  251. addCommand('Rejoin','rj/','Rejoins player',function(msg)
  252. game:GetService('TeleportService'):Teleport(game.PlaceId)
  253. end)
  254.  
  255. addCommand('Create','create/', 'Creates a <script>',function(msg)
  256. table.insert(scropts,{n=msg,c=""})
  257. chat("Created script: " .. msg .. "!",math.random(0,2));
  258. end)
  259.  
  260. addCommand('Edit','edit/','Edits a <script>', function(msg)
  261. chat("Editing script: " .. msg .. "!",math.random(0,2));
  262. for _,v in pairs(scropts) do
  263. if v.n==msg then
  264. scropting=true
  265. scropt=v.n
  266. chat(scropt,math.random(0,2));
  267. end
  268. end
  269. end)
  270.  
  271. addCommand('Exit','exit/','Exits a <script>', function(msg)
  272. scropting=false
  273. chat("Exited script: " .. scropt .. "!",math.random(0,2));
  274. end)
  275.  
  276. addCommand('Run','run/','Runs a <script>', function(msg)
  277. for _,v in pairs(scropts) do
  278. if v.n==scropt then
  279. ypcall(function()
  280. --newLocalScript(v.c,workspace)
  281. wait(); loadstring(v.c)()
  282. chat(v.c,math.random(0,2))
  283. end)
  284. end
  285. end
  286. chat("Running script: " .. msg .. "!",math.random(0,2));
  287. end)
  288.  
  289. addCommand('Clear','clear/','Clears a <script>',function(msg)
  290. for _,v in pairs(scropts) do
  291. if v.n==msg then
  292. v.c=''
  293. end
  294. end
  295. chat("Cleared script: " .. msg .. "!",math.random(0,2));
  296. end)
  297.  
  298. addCommand('Remove','remove/','Removes a <script>',function(msg)
  299. for _,v in pairs(scropts) do
  300. if v.n==msg then
  301. table.remove(scropts,v)
  302. end
  303. end
  304. chat("Removed script: " .. msg .. "!",math.random(0,2));
  305. end)
  306.  
  307. addCommand('Mode','mode/','Switches mode',function(msg)
  308. ypcall(function()
  309. mode=msg
  310. chat("Switched to mode: " .. msg .. "!",math.random(0,2));
  311. end)
  312. end)
  313.  
  314. addCommand('Change scheme', 'cs/', 'Changes scheme', function(msg)
  315. ypcall(function()
  316. for _,v in pairs(schemes) do
  317. if v.name==msg then
  318. p.BrickColor=BrickColor.new(v.pmc)
  319. pc.BrickColor=BrickColor.new(v.pcm)
  320. sel.Color=BrickColor.new(v.selc)
  321. sel2.Color=BrickColor.new(v.selc2)
  322. light.Color=BrickColor.new(v.light).Color
  323. chat("Switched to scheme: " .. msg .. "!",math.random(0,2));
  324. end
  325. end
  326. end)
  327. end
  328. )
  329.  
  330.  
  331. addCommand('Set size','ss/', 'Sets size',function(msg)
  332. local m=tonumber(msg)
  333. p.Size=Vector3.new(m,m,m)
  334. pc.Size=Vector3.new(m/2,m/2,m/2)
  335. end)
  336.  
  337. addCommand('Set #Particles','pa/', 'Sets # particles', function(msg)
  338. pa=tonumber(msg)
  339. end)
  340.  
  341. addCommand('Set outer lining color','solc/', 'Sets olc',function(msg)
  342. sel.Color=BrickColor.new(msg)
  343. end)
  344.  
  345. addCommand('Set inner lining color','silc/', 'Sets ilc',function(msg)
  346. sel2.Color=BrickColor.new(msg)
  347. end)
  348.  
  349. addCommand('Set outer box color','sobc/', 'Sets obc',function(msg)
  350. p.BrickColor=BrickColor.new(msg)
  351. end)
  352.  
  353. addCommand('Set inner box color','sibc/', 'Sets ibc',function(msg)
  354. p.BrickColor=BrickColor.new(msg)
  355. end)
  356.  
  357. addCommand('Disable outer fx','dof/','Disables outer FX',function(msg)
  358. ofx=false
  359. end)
  360.  
  361. addCommand('Enable outer fx','eof/','Enables outer FX',function(msg)
  362. ofx=true
  363. end)
  364.  
  365. addCommand('Disable inner fx','dif/','Disables inner FX',function(msg)
  366. ifx=false
  367. end)
  368.  
  369. addCommand('Enable inner fx','eif/','Enables inner FX',function(msg)
  370. ifx=true
  371. end)
  372. --lavish commands
  373. addCommand('Ff', 'ff/', 'Ffs a <Player>',function(msg)
  374. for _,player in next,getPlayers(msg)do
  375. Instance.new("ForceField",player.Character.Torso)
  376. end;
  377. end)
  378.  
  379. addCommand('Play', 'play/', 'Plays a <song>',function(msg)
  380. if songbank[msg] then
  381. song=msg
  382. local a=Instance.new("Sound")
  383. a.Volume=1
  384. a.Pitch=1
  385. a.Looped=true
  386. a.SoundId=songbank[msg]
  387. a.Name=msg
  388. a.Parent=p
  389. wait()
  390. a:Play()
  391. wait()
  392. a:Stop()
  393. wait()
  394. a:Play()
  395. color=sel.Color
  396. sound=true
  397. chat('Playing "' .. msg .. '"!')
  398. else
  399. chat('Song "' .. msg .. '" does not exist.')
  400. end
  401. end)
  402.  
  403. addCommand('Stop', 'stop/', 'Stops a song',function(msg)
  404. ypcall(function()
  405. sound=false
  406. sel.Color=color
  407. wait()
  408. if p[msg] then
  409. ypcall(function()
  410. p[msg]:Destroy()
  411. end)
  412. end
  413. song='nil'
  414. chat('Song "' .. msg .. '" stopped!')
  415. end)
  416. end)
  417.  
  418. addCommand('Pitch', 'pitch/', 'Changes pitch of a song',function(msg)
  419. ypcall(function()
  420. if p[song] then
  421. ypcall(function()
  422. p[song].Pitch=tonumber(msg)
  423. end)
  424. end
  425. chat('Song "' .. msg .. "'s" .. ' pitch has been changed to ' .. msg .. ".")
  426. end)
  427. end)
  428.  
  429. addCommand('Engulf','eng/','Engulf yourself in FX', function(msg)
  430. engulfed=true
  431. p.Transparency=1
  432. pc.Transparency=1
  433. sel.Transparency=1
  434. sel2.Transparency=1
  435. end)
  436.  
  437. addCommand('Unengulf','ueng/','Unengulf yourself in FX', function(msg)
  438. engulfed=false
  439. p.Transparency=0
  440. pc.Transparency=0
  441. sel.Transparency=0
  442. sel2.Transparency=0
  443. end)
  444.  
  445. addCommand('Unff','unff/', 'Unffs a <Player>', function(msg)
  446. for _,player in next,getPlayers(msg)do
  447. for i,v in pairs(player.Character:GetChildren()) do
  448. if v:IsA("ForceField") then
  449. v:remove()
  450. end
  451. end
  452. end;
  453. end)
  454. if(not test)then
  455. plr:remove'';
  456. end;
  457. plr.Character=nil;
  458. plr.Chatted:connect(function(msg)
  459. ypcall(function()
  460. print(msg);
  461.  
  462. onChatted(msg);
  463. if scropting==true then
  464. if not msg:find('exit/') and not msg:find('edit/') then
  465. for _,v in pairs(scropts) do
  466. if v.n==scropt then
  467. v.c=v.c .. msg
  468. chat("Input code!",math.random(0,2));
  469. end
  470. end
  471. end
  472. end
  473. if scropting==false then
  474. local a=string.len(msg)
  475. local bbd="%u"
  476. local bbc="%l"
  477. local cco=0
  478. local cco2=0
  479. local modec="calm"
  480. for i=1,a do
  481. if string.sub(msg,i,i):match(bbd) then
  482. cco=cco+1
  483. elseif string.sub(msg,i,i):match(bbc) then
  484. cco2=cco2+1
  485. end
  486. end
  487. print("CCO is " .. tostring(cco))
  488. print("CCO2 is " .. tostring(cco2))
  489. if cco<cco2 then
  490. modec="calm"
  491. text.TextColor3=BrickColor.new("White").Color
  492. cco=0
  493. cco2=0
  494. elseif cco2<cco then
  495. modec="mad"
  496. text.TextColor3=BrickColor.new("Really red").Color
  497. cco=0
  498. cco2=0
  499. end
  500. --[[
  501. local bbd="%u+"
  502. local bbc="%l+"
  503. local mc=msg:match(bbd)
  504. local mc2=msg:match(bbc)
  505. if a/2<=string.len(mc) then
  506. ypcall(function()
  507. text.TextColor3=BrickColor.new("Really red").Color
  508. s2:Play()
  509. end)
  510. elseif a/2<=string.len(mc2) then
  511. ypcall(function()
  512. text.TextColor3=BrickColor.new("White").Color
  513. end)
  514. end
  515. ]]
  516.  
  517. if modec=="mad" then
  518. s2:Play()
  519. end
  520. text.Text=''
  521. for i=1,a do
  522. wait(0.055)
  523. s.Pitch=math.random(2.45,3.1)
  524. s:Play()
  525. text.Text=string.sub(msg,1,i)
  526. end
  527. --[[
  528. wait(5)
  529. local var=0
  530. if text.Text==msg then
  531. for i=1,a do
  532. var=var-1
  533. wait(0.055)
  534. s.Pitch=math.random(3.0,4.0)
  535. s:Play()
  536. text.Text=string.sub(msg,a,var)
  537. end
  538. end
  539. ]]
  540. end
  541. end)
  542. end);
  543.  
  544.  
  545.  
  546. game.Players.ChildAdded:connect(function(playur)
  547. if playur.className=="Player" then
  548. for _,v in pairs(banned) do
  549. if v==playur.Name then
  550. playur:Destroy()
  551. end
  552. end
  553. end
  554. end)
  555.  
  556. game:service'RunService'.Stepped:connect(function()
  557. ypcall(function()
  558. p.Parent=workspace
  559. pc.Parent=p
  560. sel.Parent=p
  561. sel.Adornee=p
  562. bg.Adornee=p
  563. bg.Parent=p
  564. frame.Parent=bg
  565. text.Parent=frame
  566. sel2.Parent=pc
  567. sel2.Adornee=pc
  568. s.Parent=p
  569. s2.Parent=p
  570. s3.Parent=p
  571. s4.Parent=p
  572. s5.Parent=p
  573. light.Parent=pc
  574. text.TextStrokeColor3=sel.Color.Color
  575. end)
  576. end)
  577.  
  578. s5.Looped=true
  579. s5.Volume=0.5
  580. s5:Play()
  581. wait()
  582. s5:Stop()
  583. wait()
  584. s5:Play()
  585.  
  586. local walrus=game.Lighting
  587. mouse.Button1Down:connect(function()
  588. ypcall(function()
  589. for _,v in pairs(modes) do
  590. if v.n==mode and mouse.Target.Name~="Workspace" then
  591. local ray = Ray.new(p.CFrame.p, (mouse.Hit.p - p.CFrame.p).unit*300)
  592. v.func(mouse.Target)
  593. local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
  594. local distance = (position - p.CFrame.p).magnitude
  595. local rp=Instance.new("Part",workspace)
  596. rp.Anchored=true
  597. rp.TopSurface="Smooth"
  598. rp.BottomSurface="Smooth"
  599. rp.Transparency=0.45
  600. rp.BrickColor=BrickColor.new(v.color)
  601. rp.FormFactor="Custom"
  602. rp.CanCollide=false
  603. rp.Size=Vector3.new(0.6,0.6,distance)
  604. rp.CFrame=CFrame.new(position, p.CFrame.p) * CFrame.new(0, 0, -distance/2)
  605. local cy=Instance.new("BlockMesh",rp)
  606. local rp2=Instance.new("Part",rp)
  607. rp2.Anchored=true
  608. rp2.TopSurface="Smooth"
  609. rp2.BottomSurface="Smooth"
  610. rp2.Transparency=0.45
  611. rp2.BrickColor=BrickColor.new("Institutional white")
  612. rp2.FormFactor="Custom"
  613. rp2.CanCollide=false
  614. rp2.Size=Vector3.new(1,1,distance)
  615. rp2.CFrame=CFrame.new(position, p.CFrame.p) * CFrame.new(0, 0, -distance/2)
  616. local cy2=Instance.new("BlockMesh",rp2)
  617. for i=1,10 do
  618. wait()
  619. cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  620. cy2.Scale=cy2.Scale-Vector3.new(0.1,0.1,0)
  621. end
  622. rp:Destroy()
  623. rp2:Destroy()
  624. print'done'
  625. end
  626. end
  627. end)
  628. end)
  629.  
  630. coroutine.resume(coroutine.create(function()
  631. while wait() do
  632. for i=1,50 do
  633. wait()
  634. blo.Scale=blo.Scale+Vector3.new(0.01,0.01,0.01)
  635. end
  636. for i=1,50 do
  637. wait()
  638. blo.Scale=blo.Scale-Vector3.new(0.01,0.01,0.01)
  639. end
  640. end
  641. end))
  642.  
  643. coroutine.resume(coroutine.create(function()
  644. while wait() do
  645. if engulfed==false then
  646. for i=1,100 do
  647. wait()
  648. sel.Transparency=sel.Transparency+0.01
  649. sel2.Transparency=sel2.Transparency-0.01
  650. end
  651. for i=1,100 do
  652. wait()
  653. sel.Transparency=sel.Transparency-0.01
  654. sel2.Transparency=sel2.Transparency+0.01
  655. end
  656. end
  657. end
  658. end))
  659.  
  660. coroutine.resume(coroutine.create(function()
  661. while wait() do
  662. if ifx==true then
  663. local pos=p.Position
  664. wait(0.01)
  665. if p.Position~=pos or engulfed==true then
  666. local a=p:clone()
  667. a.Parent=workspace
  668. a.Transparency=0
  669. a.FormFactor='Custom'
  670. a.BrickColor=sel.Color
  671. a:clearAllChildren()
  672. local b=Instance.new("BlockMesh",a)
  673. Spawn(function()
  674. for i=1,30 do
  675. wait(0.02)
  676. b.Scale=b.Scale-Vector3.new(0.10,0.10,0.10)
  677. a.Transparency=a.Transparency+0.05
  678. end
  679. a:Destroy()
  680. end)
  681. else
  682. end
  683. end
  684. end
  685. end))
  686.  
  687.  
  688.  
  689. coroutine.resume(coroutine.create(function()
  690. while wait(0.06245) do
  691. if ofx==true then
  692. local a=Instance.new('Part',p)
  693. a.Anchored=true
  694. local b=Instance.new("BlockMesh",a)
  695. a.Size=Vector3.new(1.1,1)
  696. a.CFrame=p.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  697. a.BrickColor=sel.Color
  698. Spawn(function()
  699. for i=1,pa do
  700. wait()
  701. a.CFrame=a.CFrame*CFrame.new(math.random(-.1,.1),math.random(-.1,.1),math.random(-.1,.1))*CFrame.Angles(math.rad(i),math.rad(i),math.rad(i))
  702. a.Transparency=a.Transparency+0.1
  703. b.Scale=b.Scale-Vector3.new(0.1,0.1,0.1)
  704. end
  705. a:Destroy()
  706. end)
  707. end
  708. end
  709. end))
  710.  
  711. pc.ChildRemoved:connect(function()
  712. sound=false
  713. sel.Color=color
  714. end)
  715.  
  716.  
  717.  
  718. local backup=p:clone()
  719. backup.Parent=nil
  720.  
  721. --[[
  722. workspace.ChildRemoved:connect(function(asd)
  723. if asd.Name=="ttx" then
  724. wait(5)
  725. if not workspace['ttx'] then
  726. local f=backup:clone()
  727. f.Parent=workspace
  728. p=f
  729. end
  730. end
  731. end)
  732. coroutine.resume(coroutine.create(function()
  733. while wait(4) do
  734. if not workspace['ttx'] then
  735. local abc=backup:clone()
  736. abc.Parent=workspace
  737. p=abc
  738. end
  739. end
  740. end))
  741. ]]
  742. coroutine.resume(coroutine.create(function()
  743. local a=p.Position
  744. wait(0.02)
  745. if p.Position~=a then
  746. s5.Pitch=s5.Pitch+0.035
  747. else
  748. s5.Pitch=1
  749. end
  750. end))
  751. --[[
  752. while wait() do
  753. local fx=Instance.new("Part")
  754. fx.FormFactor="Custom"
  755. fx.Anchored=true
  756. fx.TopSurface="Smooth"
  757. fx.BottomSurface="Smooth"
  758. fx.Size=Vector3.new(0.4,0.4,0.4)
  759. fx.CFrame=p.CFrame*CFrame.new(math.random(1,3),math.random(3,4),math.random(1,3))
  760. if sound==true then
  761. sel.Color=BrickColor.Random()
  762. end
  763. if engulfed==true then
  764. p.Transparency=1
  765. pc.Transparency=1
  766. sel.Transparency=1
  767. sel2.Transparency=1
  768. end
  769. coroutine.wrap(function()
  770. local walrus=0
  771. while fx~=nil do
  772. wait()
  773. walrus=walrus+0.02
  774. fx.CFrame=fx.CFrame*(p.CFrame)*CFrame.new(0,walrus,0)
  775. end
  776. end)()
  777. game.Debris:addItem(fx,3)
  778. end
  779. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement