Advertisement
Demonlord27

TTX

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