memberhero

Untitled

Jul 28th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.85 KB | None | 0 0
  1. --[[
  2.  
  3. Clockwork Arena made by Fenrier.
  4.  
  5. ]]
  6.  
  7. it=Instance.new
  8.  
  9. vt=Vector3.new
  10.  
  11. cf=CFrame.new
  12.  
  13. euler=CFrame.fromEulerAnglesXYZ
  14.  
  15. angles=CFrame.Angles
  16.  
  17. teledebounce=false
  18.  
  19. teledebounce2=false
  20.  
  21. c=game.Players:children()
  22.  
  23. --[[for i=1,#c do
  24.  
  25. if c[i].className=="Player" and c[i].Character:findFirstChild("Torso")~=nil then
  26.  
  27. c[i].Character.Torso.CFrame=c[i].Character.Torso.CFrame*cf(0,50,0)
  28.  
  29. end
  30.  
  31. end]]
  32.  
  33.  
  34.  
  35. if workspace:findFirstChild("Clockwork Arena",true) ~= nil then
  36.  
  37. workspace:findFirstChild("Clockwork Arena",true).Parent = nil
  38.  
  39. end
  40.  
  41.  
  42.  
  43.  
  44.  
  45. function part(formfactor,parent,reflectance,transparency,brickcolor,material,name,size,cframe)
  46.  
  47. local fp = it("Part")
  48.  
  49. fp.formFactor = formfactor
  50.  
  51. fp.Parent = parent
  52.  
  53. fp.Reflectance = reflectance
  54.  
  55. fp.Transparency = transparency
  56.  
  57. fp.CanCollide = true
  58.  
  59. fp.Anchored = true
  60.  
  61. fp.Locked=true
  62.  
  63. fp.BrickColor = brickcolor
  64.  
  65. fp.Name = name
  66.  
  67. fp.Size = size
  68.  
  69. fp.Material = material
  70.  
  71. fp.CFrame = cframe
  72.  
  73. fp.BottomSurface="Smooth"
  74.  
  75. fp.TopSurface="Smooth"
  76.  
  77. fp:BreakJoints()
  78.  
  79. return fp
  80.  
  81. end
  82.  
  83.  
  84.  
  85. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  86.  
  87. local mesh = it(Mesh)
  88.  
  89. mesh.Parent = part
  90.  
  91. if Mesh=="SpecialMesh" then
  92.  
  93. mesh.MeshType = meshtype
  94.  
  95. mesh.MeshId = meshid
  96.  
  97. end
  98.  
  99. mesh.Offset=offset
  100.  
  101. mesh.Scale=scale
  102.  
  103. return mesh
  104.  
  105. end
  106.  
  107.  
  108.  
  109. function weld(parent,part0,part1,c0)
  110.  
  111. local weld = it("Weld")
  112.  
  113. weld.Parent = parent
  114.  
  115. weld.Part0 = part0
  116.  
  117. weld.Part1 = part1
  118.  
  119. weld.C0 = c0
  120.  
  121. return weld
  122.  
  123. end
  124.  
  125.  
  126.  
  127. local modelzorz = Instance.new("Model")
  128.  
  129. modelzorz.Parent = workspace
  130.  
  131. modelzorz.Name = "Clockwork Arena"
  132.  
  133. script.Parent=modelzorz
  134.  
  135. CF=cf(0,0,0)
  136.  
  137.  
  138.  
  139. local prt1=part(3,modelzorz,0,0,BrickColor.new("Dark orange"),"Slate","Part1",vt(400,10,400),CF)
  140.  
  141. local prt1b=part(3,modelzorz,0,1,BrickColor.new("Dark orange"),"Slate","Part1",vt(0,0,0),CF*cf(0,20,0))
  142.  
  143. light = Instance.new("PointLight")
  144.  
  145. light.Brightness = .8
  146.  
  147. light.Range = 150
  148.  
  149. light.Color = Color3.new(255,255,255)
  150.  
  151. light.Parent=prt1b
  152.  
  153. numb=0
  154.  
  155. numb2=0
  156.  
  157. for i=1,8 do
  158.  
  159. local prt2=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part2",vt(300,15,60),CF*euler(0,numb,0)*cf(0,-numb2,0))
  160.  
  161. numb=numb+0.3925
  162.  
  163. numb2=numb2+0.01
  164.  
  165. end
  166.  
  167. numb=0
  168.  
  169. for i=1,16 do
  170.  
  171. local prt3=part(3,modelzorz,0,0,BrickColor.new("Tr. Red"),"Slate","Part3",vt(100,10,2),CF*euler(0,numb,0)*cf(80,3-0.01,0))
  172.  
  173. numb=numb+0.3925
  174.  
  175. end
  176.  
  177. numb=0
  178.  
  179. for i=1,4 do
  180.  
  181. local prt4=part(3,modelzorz,0,0,BrickColor.new("Tr. Red"),"Slate","Part4",vt(30,11,30),CF*euler(0,numb,0)*cf(80,2.5,0))
  182.  
  183. local prt4b=part(3,modelzorz,0,1,BrickColor.new("Tr. Red"),"Slate","Part4",vt(0,0,0),CF*euler(0,numb,0)*cf(80,2.5+20,0))
  184.  
  185. light = Instance.new("PointLight")
  186.  
  187. light.Brightness = .8
  188.  
  189. light.Range = 50
  190.  
  191. light.Color = Color3.new(50,50,0)
  192.  
  193. light.Parent=prt4b
  194.  
  195. numb2=0
  196.  
  197. for i=1,8 do
  198.  
  199. local prt5=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part5",vt(10,5,5),prt4.CFrame*euler(0,numb2,0)*cf(8,3.5,0))
  200.  
  201. numb2=numb2+0.785
  202.  
  203. end
  204.  
  205. numb=numb+1.57
  206.  
  207. end
  208.  
  209. local prt6=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part6",vt(40,10,40),CF*cf(0,10,0))
  210.  
  211. numb2=0
  212.  
  213. for i=1,4 do
  214.  
  215. numb=0
  216.  
  217. numb3=0
  218.  
  219. for i=1,8 do
  220.  
  221. local prt6=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part6",vt(5,10,20+numb3),CF*euler(0,numb2,0)*cf(-20-numb,9.9-numb,0))
  222.  
  223. numb=numb+1
  224.  
  225. numb3=numb3+0.01
  226.  
  227. end
  228.  
  229. numb2=numb2+1.57
  230.  
  231. end
  232.  
  233. numb=0
  234.  
  235. numb2=0
  236.  
  237. for i=1,8 do
  238.  
  239. local prt7=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part7",vt(15,5,10),CF*euler(0,numb,0)*cf(10,13-numb2,0))
  240.  
  241. numb=numb+0.785
  242.  
  243. numb2=numb2+0.01
  244.  
  245. end
  246.  
  247. numb=0
  248.  
  249. for i=1,16 do
  250.  
  251. if i~=1 and i~=5 and i~=9 and i~=13 then
  252.  
  253. local prt8=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part8",vt(30,12,70),CF*euler(0,numb,0)*cf(-180,10,0))
  254.  
  255. local prt9=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part9",vt(20,13,60),prt8.CFrame)
  256.  
  257. numb2=0
  258.  
  259. for i=1,6 do
  260.  
  261. local prt9b=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part9b",vt(5,31,5),prt8.CFrame*cf(0,0,30+numb2)*euler(0,0,1.57))
  262.  
  263. local prt9c=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part9c",vt(3,32,3),prt9b.CFrame)
  264.  
  265. light = Instance.new("PointLight")
  266.  
  267. light.Brightness = .8
  268.  
  269. light.Range = 30
  270.  
  271. light.Color = Color3.new(255,255,255)
  272.  
  273. light.Parent=prt9c
  274.  
  275. numb2=numb2-10
  276.  
  277. end
  278.  
  279. end
  280.  
  281. numb=numb+0.3925
  282.  
  283. end
  284.  
  285. numb=1.57
  286.  
  287. for i=1,3 do
  288.  
  289. local prt10=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part10",vt(20,13,80),CF*euler(0,numb,0)*cf(-185,10,0))
  290.  
  291. local prt11=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part10",vt(10,14,70),prt10.CFrame)
  292.  
  293. numb2=0
  294.  
  295. for i=1,6 do
  296.  
  297. local prt12=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part12",vt(2,11,80),prt10.CFrame*cf(11-numb2,numb2,0))
  298.  
  299. numb2=numb2-2
  300.  
  301. end
  302.  
  303. numb=numb+1.57
  304.  
  305. end
  306.  
  307. numb=0
  308.  
  309. numb2=0
  310.  
  311. for i=1,39 do
  312.  
  313. if i>=3 then
  314.  
  315. local prt13=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part13",vt(30,10,40),CF*euler(0,numb,0)*cf(-195,20+numb2,0))
  316.  
  317. local prt14=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part14",vt(20,11,30),prt13.CFrame)
  318.  
  319. end
  320.  
  321. numb2=numb2+0.009
  322.  
  323. numb=numb+0.157
  324.  
  325. end
  326.  
  327. numb=0
  328.  
  329. for i=1,40 do
  330.  
  331. local prt15=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part15",vt(30,10,40),CF*euler(0,numb,0)*cf(-220,30.5+numb2,0))
  332.  
  333. numb3=0
  334.  
  335. local prt9b=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part9b",vt(5,35,5),prt15.CFrame*cf(0,0,0)*euler(0,0,1.57))
  336.  
  337. local prt9c=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part9c",vt(3,36,3),prt9b.CFrame)
  338.  
  339. light = Instance.new("PointLight")
  340.  
  341. light.Brightness = .8
  342.  
  343. light.Range = 30
  344.  
  345. light.Color = Color3.new(255,255,255)
  346.  
  347. light.Parent=prt9c
  348.  
  349. local prt16=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part16",vt(29.9,11,39.9),prt15.CFrame)
  350.  
  351. local prt17=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part17",vt(10,3,10),prt15.CFrame*cf(0,6,0))
  352.  
  353. local prt18=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part18",vt(5,5,5),prt15.CFrame)
  354.  
  355. prt18.Shape="Cylinder"
  356.  
  357. prt18.CFrame=prt17.CFrame*cf(0,3,0)*euler(0,0,1.57)
  358.  
  359. local prt19=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part19",vt(10,3,10),prt18.CFrame*euler(0,0,-1.57)*cf(0,3,0))
  360.  
  361. local prt20=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part20",vt(30,10,40),prt19.CFrame*cf(0,6,0))
  362.  
  363. local prt21=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part21",vt(29.9,11,39.9),prt20.CFrame)
  364.  
  365. local prt22=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part22",vt(150,20,40),prt21.CFrame*cf(50,12,0))
  366.  
  367. local prt23=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part23",vt(50,50,90),prt22.CFrame*cf(49,30,0)*euler(0,0,0.5))
  368.  
  369. local prt24=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part24",vt(80,20,20),prt23.CFrame*cf(40,10,0))
  370.  
  371. local prt25=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part25",vt(5,40,20),prt24.CFrame*cf(20,0,0))
  372.  
  373. local prt26=part(3,modelzorz,0,0.8,BrickColor.new("Bright blue"),"Plastic","Part26",vt(1,80,20),prt24.CFrame*cf(60,0,0)*euler(0,0,1.07))
  374.  
  375. numb=numb+0.157
  376.  
  377. end
  378.  
  379. numb=0
  380.  
  381. for i=1,6 do
  382.  
  383. local prt27=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Plastic","Part27",vt(13,50,13),CF*euler(0,numb,0)*cf(120,25,0))
  384.  
  385. local msh27=mesh("CylinderMesh",prt27,"","",vt(0,0,0),vt(1,1,1))
  386.  
  387. local prt28=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part28",vt(15,15,15),CF*euler(0,numb,0)*cf(120,10,0))
  388.  
  389. local prt29=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part29",vt(10,16,10),prt28.CFrame*euler(1.57,0.785,0))
  390.  
  391. local prt30=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part30",vt(10,16,10),prt28.CFrame*euler(0.785,0,1.57))
  392.  
  393. numb2=0
  394.  
  395. for i=1,6 do
  396.  
  397. local prt31=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part31",vt(15,50,1),prt27.CFrame*euler(0,numb2,0))
  398.  
  399. numb2=numb2+0.785
  400.  
  401. end
  402.  
  403. local prt32=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part32",vt(15,15,15),CF*euler(0,numb,0)*cf(120,47.5,0))
  404.  
  405. local prt33=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part33",vt(10,16,10),prt32.CFrame*euler(1.57,0.785,0))
  406.  
  407. local prt34=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part34",vt(10,16,10),prt32.CFrame*euler(0.785,0,1.57))
  408.  
  409. local spawn = Instance.new("SpawnLocation")
  410.  
  411. light = Instance.new("PointLight")
  412.  
  413. light.Brightness = .8
  414.  
  415. light.Range = 100
  416.  
  417. light.Parent=spawn
  418.  
  419. spawn.Parent = modelzorz
  420.  
  421. spawn.CanCollide = false
  422.  
  423. spawn.Anchored = true
  424.  
  425. spawn.Transparency = 1
  426.  
  427. spawn.CFrame=CF*euler(0,numb,0)*cf(140,0,0)
  428.  
  429. numb=numb+1.04666666
  430.  
  431. end
  432.  
  433. local prt35=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part35",vt(60,30,40),CF*cf(-180,15,30))
  434.  
  435. local prt35a=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part35a",vt(10,20,5),CF*cf(-150,15,15))
  436.  
  437. local prt36=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part36",vt(60,30,40),CF*cf(-180,15,-30))
  438.  
  439. local prt3ba=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part3ba",vt(10,20,5),CF*cf(-150,15,-15))
  440.  
  441.  
  442.  
  443. local Torso1=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Torso",vt(2,2,1),CF*cf(-155,33,-15)*euler(0,1.57,0))
  444.  
  445. local LArm1=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Left Arm",vt(1,2,1),Torso1.CFrame*cf(0.8,0,0.5+0.2)*euler(-1,0,-1))
  446.  
  447. local RArm1=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Reft Arm",vt(1,2,1),Torso1.CFrame*cf(-0.8,0,0.5+0.2)*euler(-1,0,1))
  448.  
  449. local LLeg1=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Left Leg",vt(1,2,1),Torso1.CFrame*cf(0.5,-2,0))
  450.  
  451. local RLeg1=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Right Leg",vt(1,2,1),Torso1.CFrame*cf(-0.5,-2,0))
  452.  
  453. local Head1=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Head",vt(1,1,1),Torso1.CFrame*cf(0,1.5,0))
  454.  
  455.  
  456.  
  457. local Torso2=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Torso",vt(2,2,1),CF*cf(-155,33,15)*euler(0,1.57,0))
  458.  
  459. local LArm2=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Left Arm",vt(1,2,1),Torso2.CFrame*cf(0.8,0,0.5+0.2)*euler(-1,0,-1))
  460.  
  461. local RArm2=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Reft Arm",vt(1,2,1),Torso2.CFrame*cf(-0.8,0,0.5+0.2)*euler(-1,0,1))
  462.  
  463. local LLeg2=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Left Leg",vt(1,2,1),Torso2.CFrame*cf(0.5,-2,0))
  464.  
  465. local RLeg2=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Right Leg",vt(1,2,1),Torso2.CFrame*cf(-0.5,-2,0))
  466.  
  467. local Head2=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Head",vt(1,1,1),Torso2.CFrame*cf(0,1.5,0))
  468.  
  469.  
  470.  
  471. print("Fenrier's Clockwork Arena loaded.")
  472.  
  473. --workspace.Fenrier.Torso.CFrame=teleprt2.CFrame*cf(0,150,0)
  474.  
  475. -- mediafire
  476.  
  477. --[[
  478.  
  479. Copyrighted (C) Fenrier 2013
  480.  
  481. ]]
Add Comment
Please, Sign In to add comment