Advertisement
ohhhhhhshdhashdahsd

TTX PROBE RARE SCRIPT

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