Demonlord27

ttxprobetest1

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