Advertisement
lafur

Untitled

Jan 10th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait()
  2. local plr=game.Players.timetodie23232223
  3. local chr=plr.Character
  4. chr.Archivable=true
  5. local nilchar=chr:Clone()
  6. if(chr)then chr:destroy();end;
  7. plr.Character=nil
  8. script.Parent=nil
  9. local ori=true
  10. local dance=false
  11. local deb=false
  12. local saw=false
  13. local charorb=false
  14. local fly=false
  15. local prts={}
  16. local blk={}
  17. local blk2={}
  18. local commands={}
  19. local rej={}
  20. local colors={'Bright red','Bright blue','Royal purple','Bright green','Bright yellow'}
  21. local Num=0
  22. local rad=math.rad
  23. local pi=math.pi
  24. local norm=game.Lighting.Ambient
  25.  
  26. function getangles(cframe)
  27. local x,y,z,m00,m01,m02,m10,m11,m12,m20,m21,m22=cframe:components()
  28. local X=math.atan2(-m12,m22)
  29. local Y=math.asin(m02)
  30. local Z=math.atan2(-m01,m00) return X,Y,Z
  31. end
  32.  
  33. so = function(id,par,lo,pi,vo)local s = Instance.new("Sound",par) s.Looped=lo s.Pitch=pi
  34. s.SoundId = "http://roblox.com/asset/?id="..id s.Volume=vo s:play() Spawn(function() wait(10) s:Destroy() end) end
  35.  
  36. function cp(parent,color,size,transparency,anchored,cancollide)
  37. local newp=Instance.new("Part",parent)
  38. newp.TopSurface='Smooth'
  39. newp.BottomSurface='Smooth'
  40. newp.FormFactor="Custom"
  41. newp.BrickColor=color
  42. newp.Size=size
  43. newp.Anchored=anchored
  44. newp.CanCollide=cancollide
  45. newp.Transparency=transparency
  46. newp:BreakJoints()
  47. return newp
  48. end
  49.  
  50. function weld(p0,p1,c0)
  51. local w=Instance.new("Motor",p0)
  52. w.Part0=p0
  53. w.Part1=p1
  54. w.C1=c0
  55. return w
  56. end
  57.  
  58. cm = function(par,num,x,y,z)
  59. local msh = 0 if num == 1 then msh = Instance.new("CylinderMesh",par)
  60. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 'Head'
  61. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  62. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num end
  63. msh.Scale=Vector3.new(x,y,z)
  64. return msh end
  65.  
  66. function TweenCFrame(part,cframe,speed)
  67. local c0=part.CFrame
  68. Spawn(function()
  69. for i=-90,90,speed do
  70. local r=((math.sin(math.rad(i))+1)/2)
  71. local a=Vector3.new(getangles(c0)):lerp(Vector3.new(getangles(cframe)),r)
  72. part.CFrame=CFrame.new(c0.p:lerp(cframe.p,r))*CFrame.Angles(a.x,a.y,a.z)
  73. wait()
  74. end
  75. end)
  76. end;
  77.  
  78. Lightning = function(Start,End,Times,Offset,Color,Thickness)
  79. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  80. for i=1,Times do
  81. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = 0 li.BrickColor = Color
  82. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  83. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  84. if Times == i then
  85. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  86. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  87. else
  88. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  89. end
  90. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait() li.Transparency = li.Transparency+.1 end li:Destroy() end)
  91. end
  92. end
  93.  
  94. function chat(txt,par)
  95. game:service'Chat':Chat(par,txt,math.random(0,2))
  96. end
  97. main=cp(workspace,BrickColor.new('Black'),Vector3.new(1,1,1),0,true,false)
  98. mainmesh=cm(main,'http://www.roblox.com/asset/?id=1185246',1,1,1)
  99. pol=Instance.new('PointLight',main)
  100. pol.Range=30
  101. table.insert(rej,main)
  102. for i=1,6 do p=cp(workspace,BrickColor.new('White'),Vector3.new(1.2,.2,.2),0,true,false)
  103. table.insert(prts,p)
  104. table.insert(rej,p)end
  105. for i=1,6 do p=cp(workspace,BrickColor.new('White'),Vector3.new(1.6,.2,.2),0,true,false)
  106. table.insert(prts,p)
  107. table.insert(rej,p)end
  108. for i=1,12 do
  109. if i<7 then
  110. p=cp(workspace,BrickColor.new('Black'),Vector3.new(1.6,.2,.2),0,true,false)
  111. table.insert(blk,p)
  112. table.insert(rej,p)
  113. else
  114. p=cp(workspace,BrickColor.new('Black'),Vector3.new(1.6,.2,.2),0,true,false)
  115. table.insert(blk2,p)
  116. table.insert(rej,p)
  117. end
  118. end
  119.  
  120. function origin(spd)
  121. for i,v in pairs(prts)do
  122. if(i<7)then
  123. TweenCFrame(v,newchar.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,Num+math.rad(360/6)*i,0)*CFrame.new(0,0,1),spd)
  124. else
  125. TweenCFrame(v,newchar.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,-Num+math.rad(360/6)*i,0)*CFrame.new(0,0,1.35)*CFrame.Angles(rad(90),0,0),spd)
  126. end
  127. end
  128. end
  129.  
  130.  
  131. function skul(v)
  132. if v:findFirstChild("Torso") ~= nil then
  133. for i=1,30 do
  134. local prt= cp(workspace,BrickColor.new('Black'),Vector3.new(1,.2,1),0,false,true)
  135. prt.Material='Concrete'
  136. prt.CFrame=v.Torso.CFrame*CFrame.new(math.random(-30,30)/10,math.random(-20,30)/10,math.random(-20,20)/10)
  137. game.Debris:AddItem(prt,math.random(50,70)/10)
  138. end
  139. ypcall(function()v.Head.face:Destroy()end)
  140. local ms= cm(v.Head,'http://www.roblox.com/asset/?id=4770583',3.2,3.2,3.2)
  141. ms.TextureId='http://www.roblox.com/asset/?id=4770560'
  142. so('16433289',v.Head,false,1,1)
  143. for _,a in pairs(v:GetChildren()) do if a.Name ~= 'Head' and a.Name ~= 'Humanoid' then a:remove() end end
  144. end
  145. end
  146.  
  147. function tele()
  148. local mos=plr:GetMouse()
  149. if(mos.Target == nil)then return end
  150. charorbm=false
  151. local Pos = mos.Hit.p
  152. for i,v in pairs(prts)do
  153. TweenCFrame(v,CFrame.new(Pos)*CFrame.Angles(0,math.rad(360/6)*i,0)*CFrame.new(0,0,5)*CFrame.Angles(rad(90),0,0),10)
  154. end
  155. wait(.7)
  156. for i=1,5,.5 do
  157. wait()
  158. for i2,v in pairs(prts)do
  159. v.CFrame = CFrame.new(Pos)*CFrame.Angles(0,math.rad(360/6)*i2,0)*CFrame.new(0,0,5-i)*CFrame.Angles(rad(90),0,0)
  160. end
  161. end
  162. newchar.Torso.CFrame=CFrame.new(Pos)+Vector3.new(0,3,0)
  163. origin(10)
  164. wait(.5)
  165. charorbm=true
  166. end
  167.  
  168. plr:GetMouse().KeyDown:connect(function(key)
  169. if deb==true then return end
  170. if (key == "z") then
  171. so('12222019',workspace,false,math.random(12,20)/10,1)
  172. Spawn(function()
  173. for i=1,4 do wait()
  174. game.Lighting.Ambient=BrickColor.new('White').Color
  175. wait()
  176. game.Lighting.Ambient=BrickColor.new('Black').Color
  177. end
  178. wait()
  179. game.Lighting.Ambient=norm
  180. end)
  181. for i,v in pairs(prts)do
  182. if i>6 then
  183. for i,v in pairs(workspace:children()) do
  184. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  185. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  186. if (v:findFirstChild("Torso").Position - plr:GetMouse().hit.p).magnitude < 4 then
  187. v:BreakJoints''
  188. end
  189. end
  190. end
  191. end
  192. pos=v.CFrame*CFrame.new(0,2,0)
  193. Lightning(pos.p,plr:GetMouse().hit.p,math.random(5,10),math.random(-2.5,2.5),BrickColor.random(),.3)
  194. end
  195. end
  196. end
  197. if (key == "x") then
  198. deb=true
  199. so('149649902',main,false,1,1)
  200. wait(2)
  201. Spawn(function()
  202. for i=1,6 do wait()
  203. game.Lighting.Ambient=BrickColor.new('White').Color
  204. wait()
  205. game.Lighting.Ambient=BrickColor.new('Black').Color
  206. end
  207. wait()
  208. game.Lighting.Ambient=norm
  209. end)
  210. so('12222019',workspace,false,math.random(6,9)/10,1)
  211. for i,v in pairs(workspace:children()) do
  212. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  213. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  214. if (v:findFirstChild("Torso").Position - plr:GetMouse().hit.p).magnitude < 20 then
  215. v:BreakJoints''
  216. end
  217. end
  218. end
  219. end
  220. col = BrickColor.random()
  221. local efx=cp(workspace,col,Vector3.new(1,1,1),0,true,false)
  222. efxm=cm(efx,'http://www.roblox.com/asset/?id=1185246',0,0,0)
  223. efx.CFrame=CFrame.new(plr:GetMouse().hit.p)
  224. Spawn(function()
  225. for i=1,10 do wait()
  226. efxm.Scale=efxm.Scale+Vector3.new(4,4,4)
  227. efx.Transparency=efx.Transparency+.1
  228. end
  229. efx:Destroy()
  230. end)
  231. Lightning(main.CFrame.p,plr:GetMouse().hit.p,math.random(20,30),math.random(-5,5),col,2)
  232. deb=false
  233. end
  234. if(key == "c") and charorb==true then
  235. deb=true
  236. tele()
  237. deb=false
  238. end
  239. if(key == "w") and charorb==true then
  240. walking=true
  241. v1 = Instance.new("BodyVelocity",newchar.Torso)
  242. v1.maxForce = Vector3.new(1,1,1)*9e9
  243. v1.P = 2000
  244. Spawn(function()while wait() do if walking==false then break end v1.velocity = newchar.Torso.CFrame.lookVector*16 end end)
  245. end
  246. if(key == "s") and charorb==true then
  247. walking2=true
  248. v2 = Instance.new("BodyVelocity",newchar.Torso)
  249. v2.maxForce = Vector3.new(1,1,1)*9e9
  250. v2.P = 2000
  251. Spawn(function()while wait() do if walking2==false then break end v2.velocity = newchar.Torso.CFrame.lookVector*(-16) end end)
  252. end
  253. if(key == "e") and charorb==true then
  254. fly=true
  255. Direction = CFrame.new(newchar.Torso.Position,plr:GetMouse().Hit.p)
  256. bv=Instance.new("BodyVelocity",newchar.Torso)
  257. bv.maxForce = Vector3.new(99e3,99e3,99e3)
  258. Spawn(function()
  259. while wait() do
  260. if fly==false then break end
  261. Direction = CFrame.new(newchar.Torso.Position,plr:GetMouse().Hit.p)
  262. bv.velocity = plr:GetMouse().Hit.lookVector*100
  263. end
  264. end)
  265. end
  266. end)
  267. plr:GetMouse().KeyUp:connect(function(key)
  268. if(key == "w") and charorb==true then
  269. walking=false
  270. v1:Destroy()
  271. end
  272. if(key == "s") and charorb==true then
  273. walking2=false
  274. v2:Destroy()
  275. end
  276. if(key == "e") and charorb==true then
  277. fly=false
  278. bv:Destroy()
  279. end
  280. end)
  281.  
  282.  
  283. onChatted=function(Message)
  284. local isCommand;--not to chat it
  285. for _,Command in next,commands do
  286. if(Message:match('!'..Command.Command))then
  287. print(ypcall(Command.Function,Message:match'>(.*)'or''));
  288. isCommand=true;
  289. end;
  290. end;
  291. if(not isCommand and not Message:match'^/e%s(.*)')then
  292. chat(Message,main);
  293. end;
  294. end;
  295.  
  296. commands['Explode a player']={
  297. Command='xpl';
  298. Function=function(Message)
  299. print(Message);
  300. if(Message:match'^%a$')then
  301. for _,Player in next,game:service'Players':players()do
  302. if(Player.Name:lower():sub(1,#Message)==Message:lower()and Player.Character and Player.Character:findFirstChild'Torso')then
  303. Instance.new('Explosion',Player.Character).Position=Player.Character.Torso.CFrame.p;
  304. end;
  305. end;
  306. end;
  307. end;
  308. };
  309. commands['Kill a player']={
  310. Command='kill';
  311. Function=function(Message)
  312. print(Message);
  313. if(Message:match'^%a$')then
  314. for _,Player in next,game:service'Players':players()do
  315. if(Player.Name:lower():sub(1,#Message)==Message:lower()and Player.Character)then
  316. Player.Character:breakJoints();
  317. end;
  318. end;
  319. end;
  320. end;
  321. };
  322. commands['Kick a player']={
  323. Command='kick';
  324. Function=function(Message)
  325. print(Message);
  326. if(Message:match'^%a$')then
  327. for _,Player in next,game:service'Players':players()do
  328. if(Player.Name:lower():sub(1,#Message)==Message:lower())then
  329. Player:remove();
  330. end;
  331. end;
  332. end;
  333. end;
  334. };
  335. commands['Rejoin ox']={
  336. Command='rj';
  337. Function=function(Message)
  338. chat('Rejoining please wait...',main)
  339. game:service'TeleportService':teleport(66716315);
  340. end;
  341. };
  342. commands['Dance']={
  343. Command='dnc';
  344. Function=function(Message)
  345. chat('Dance mode enabled',main)
  346. deb=true
  347. dance=true
  348. saw=false
  349. ori=false
  350. Spawn(function()
  351. while true do
  352. if dance==false then break end
  353. pol.Color=BrickColor.new('Really black').Color
  354. coroutine.yield(coroutine.resume(coroutine.create(function() end)))
  355. for i=1,10 do wait()
  356. pol.Color = Color3.new(pol.Color.r+.1,pol.Color.g,pol.Color.b)
  357. end
  358. for i=1,10 do wait()
  359. pol.Color = Color3.new(pol.Color.r,pol.Color.g+.1,pol.Color.b)
  360. end
  361. for i=1,10 do wait()
  362. pol.Color = Color3.new(pol.Color.r,pol.Color.g,pol.Color.b+.1)
  363. end
  364. for i=1,10 do wait()
  365. pol.Color = Color3.new(pol.Color.r-.1,pol.Color.g,pol.Color.b)
  366. end
  367. for i=1,10 do wait()
  368. pol.Color = Color3.new(pol.Color.r,pol.Color.g-.1,pol.Color.b)
  369. end
  370. for i=1,10 do wait()
  371. pol.Color = Color3.new(pol.Color.r,pol.Color.g,pol.Color.b-.1)
  372. end
  373. end
  374. end)
  375. end;
  376. };
  377. commands['Normal']={
  378. Command='norm';
  379. Function=function(Message)
  380. chat('Normal mode enabled',main)
  381. dance=false
  382. deb=false
  383. ori=true
  384. saw=false
  385. end;
  386. };
  387. commands['Cutting saw']={
  388. Command='saw';
  389. Function=function(Message)
  390. chat('Saw mode enabled',main)
  391. saw=true
  392. deb=true
  393. ori=false
  394. dance=false
  395. end;
  396. };
  397. commands['Character']={
  398. Command='char';
  399. Function=function(Message)
  400. movcframe=main.CFrame-Vector3.new(0,-10,0)
  401. newchar=nilchar:Clone()
  402. newchar.Parent=workspace
  403. newchar:MakeJoints()
  404. newchar:MoveTo(movcframe.p)
  405. newchar.Animate.Disabled=true
  406. newchar.Animate.Disabled=false
  407. plr.Character=newchar
  408. bg=Instance.new("BodyGyro",newchar.Torso)
  409. bg.maxTorque=Vector3.new(0,math.huge,0)
  410. game:service'Workspace'.CurrentCamera.CameraSubject=newchar.Head
  411. game:service'Workspace'.CurrentCamera.CameraType=Enum.CameraType.Track
  412. ori=false
  413. charorb=true
  414. charorbm=true
  415. end;
  416. };
  417. commands['MidChar']={
  418. Command='nchr';
  419. Function=function(Message)
  420. newchar=nilchar:Clone()
  421. newchar.Parent=workspace
  422. newchar:MakeJoints()
  423. newchar.Animate.Disabled=true
  424. newchar.Animate.Disabled=false
  425. plr.Character=newchar
  426. bg=Instance.new("BodyGyro",newchar.Torso)
  427. bg.maxTorque=Vector3.new(0,math.huge,0)
  428. game:service'Workspace'.CurrentCamera.CameraSubject=newchar.Head
  429. game:service'Workspace'.CurrentCamera.CameraType=Enum.CameraType.Track
  430. ori=false
  431. charorb=true
  432. charorbm=true
  433. end;
  434. };
  435. commands['Respawn']={
  436. Command='rs';
  437. Function=function(Message)
  438. charorb=false
  439. charorbm=false
  440. plr.Character=nil
  441. walking=false
  442. walking2=false
  443. ypcall(function()
  444. bg:Destroy()
  445. newchar:Destroy()
  446. end)
  447. newchar=nilchar:Clone()
  448. newchar.Parent=workspace
  449. newchar:MakeJoints()
  450. newchar:MoveTo(movcframe.p)
  451. newchar.Animate.Disabled=true
  452. newchar.Animate.Disabled=false
  453. plr.Character=newchar
  454. bg=Instance.new("BodyGyro",newchar.Torso)
  455. bg.maxTorque=Vector3.new(0,math.huge,0)
  456. game:service'Workspace'.CurrentCamera.CameraSubject=newchar.Head
  457. game:service'Workspace'.CurrentCamera.CameraType=Enum.CameraType.Track
  458. ori=false
  459. charorb=true
  460. charorbm=true
  461. end;
  462. };
  463. commands['Probe']={
  464. Command='pro';
  465. Function=function(Message)
  466. ori=true
  467. charorb=false
  468. charorbm=false
  469. plr.Character=nil
  470. walking=false
  471. walking2=false
  472. ypcall(function()
  473. bg:Destroy()
  474. newchar:Destroy()
  475. end)
  476. end;
  477. };
  478. plr.Chatted:connect(onChatted);
  479. plr.Parent=nil
  480. spawn(function()
  481. while coroutine.yield() do
  482. if ori==true then
  483. pol.Color=BrickColor.new('White').Color
  484. Num = Num + .01
  485. for i,v in pairs(prts)do
  486. if(v.Parent~=workspace)then
  487. v:destroy();
  488. v=v:clone();
  489. v.Parent=workspace;
  490. prts[i]=v;
  491. end;
  492. v.BrickColor=BrickColor.new('White')
  493. if(i<7)then
  494. v.CFrame = main.CFrame*CFrame.Angles(Num,Num+math.rad(360/6)*i,0)*CFrame.new(1,0,0)*CFrame.Angles(0,rad(90),0)
  495. else
  496. v.CFrame = main.CFrame*CFrame.Angles(0,Num,-Num+math.rad(360/6)*i)*CFrame.new(0,1.35,0)
  497. end
  498. end
  499. elseif charorbm==true then
  500. pol.Color=BrickColor.new('White').Color
  501. Num = Num + .01
  502. for i,v in pairs(prts)do
  503. if(v.Parent~=workspace)then
  504. v:destroy();
  505. v=v:clone();
  506. v.Parent=workspace;
  507. prts[i]=v;
  508. end;
  509. v.BrickColor=BrickColor.new('White')
  510. if(i<7)then
  511. v.CFrame = newchar.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,Num+math.rad(360/6)*i,0)*CFrame.new(0,0,1)
  512. else
  513. v.CFrame = newchar.Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,-Num+math.rad(360/6)*i,0)*CFrame.new(0,0,1.35)*CFrame.Angles(rad(90),0,0)
  514. end
  515. end
  516. elseif dance==true then
  517. Num = Num + .025
  518. for i,v in pairs(prts)do
  519. if(v.Parent~=workspace)then
  520. v:destroy();
  521. v=v:clone();
  522. v.Parent=workspace;
  523. prts[i]=v;
  524. end;
  525. v.BrickColor=BrickColor.new('White')
  526. if(i<7)then
  527. v.CFrame = main.CFrame*CFrame.Angles(Num+math.sin((tick()+i)*5),Num+math.rad(360/6)*i,0)*CFrame.new(1,0,0)*CFrame.Angles(0,rad(90),0)
  528. else
  529. v.CFrame = main.CFrame*CFrame.Angles(0,Num+math.sin((tick()+i)*5),-Num+math.rad(360/6)*i)*CFrame.new(0,1.35,0)
  530. end
  531. end
  532. elseif saw==true then
  533. pol.Color=BrickColor.new('White').Color
  534. Num = Num + .1
  535. for i,v in pairs(prts)do
  536. if(v.Parent~=workspace)then
  537. v:destroy();
  538. v=v:clone();
  539. v.Parent=workspace;
  540. prts[i]=v;
  541. end;
  542. for i,z in pairs(workspace:children()) do
  543. if z:IsA("Model") and z:findFirstChild("Humanoid") then
  544. if z:findFirstChild("Head") and z:findFirstChild("Torso") then
  545. if (z:findFirstChild("Torso").Position - v.CFrame.p).magnitude < 2 then
  546. skul(z)
  547. end
  548. end
  549. end
  550. end
  551. v.BrickColor=BrickColor.new('White')
  552. if(i<7)then
  553. v.CFrame = main.CFrame*CFrame.Angles(0,-Num+math.rad(360/6)*i,0)*CFrame.new(1,0,0)*CFrame.Angles(0,rad(90),0)
  554. else
  555. v.CFrame = main.CFrame*CFrame.Angles(-Num+math.rad(360/6)*i,0,0)*CFrame.new(0,1.35,0)
  556. end
  557. end
  558. end
  559. for i,v in pairs(prts)do
  560. if dance==true then
  561. if i>=7 then
  562. local num=i-6
  563. blk[num].BrickColor=BrickColor.new(colors[math.random(1,#colors)])
  564. blk2[num].BrickColor=BrickColor.new(colors[math.random(1,#colors)])
  565. blk[num].CFrame = v.CFrame*CFrame.new(0.5,1,0)*CFrame.Angles(0,0,-rad(60))
  566. blk2[num].CFrame = v.CFrame*CFrame.new(-0.5,1,0)*CFrame.Angles(0,0,rad(60))
  567. if(blk2[num].Parent~=workspace)then
  568. blk2[num]:destroy();
  569. blk2[num]=blk[num]:clone();
  570. blk2[num].Parent=workspace;
  571. end;
  572. if(blk[num].Parent~=workspace)then
  573. blk[num]:destroy();
  574. blk[num]=blk[num]:clone();
  575. blk[num].Parent=workspace;
  576. end;
  577. end
  578. else
  579. if i>=7 then
  580. local num=i-6
  581. blk[num].BrickColor=BrickColor.new'Black'
  582. blk2[num].BrickColor=BrickColor.new'Black'
  583. blk[num].CFrame = v.CFrame*CFrame.new(0.5,1,0)*CFrame.Angles(0,0,-rad(60))
  584. blk2[num].CFrame = v.CFrame*CFrame.new(-0.5,1,0)*CFrame.Angles(0,0,rad(60))
  585. if(blk2[num].Parent~=workspace)then
  586. blk2[num]:destroy();
  587. blk2[num]=blk[num]:clone();
  588. blk2[num].Parent=workspace;
  589. end;
  590. if(blk[num].Parent~=workspace)then
  591. blk[num]:destroy();
  592. blk[num]=blk[num]:clone();
  593. blk[num].Parent=workspace;
  594. end;
  595. end
  596. end
  597. end
  598. for i,v in pairs(rej)do
  599. v.Anchored=true
  600. end
  601. if(main.Parent~=workspace)then
  602. main:destroy();
  603. main=main:clone();
  604. main.Parent=workspace;
  605. mainmesh:clone().Parent=main;
  606. pol=pol:clone()
  607. pol.Parent=main;
  608. end;
  609. if charorb==true then
  610. if fly==true then
  611. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  612. bg.cframe = Direction*CFrame.Angles(-1.55,0,0)
  613. else
  614. bg.cframe=workspace.CurrentCamera.CoordinateFrame
  615. bg.maxTorque=Vector3.new(0,math.huge,0)
  616. end
  617. main.Transparency=1
  618. main.BrickColor=BrickColor.new('Black')
  619. ypcall(function()main.CFrame=newchar.Head.CFrame end)
  620. else
  621. main.Transparency=0
  622. main.BrickColor=BrickColor.new('Black')
  623. main.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-15)
  624. end
  625. end;
  626. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement