Advertisement
MistaMagic

SD

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