zXzGamePROzXz

Untitled

Jan 5th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. --[[
  7.  
  8. Clockwork Arena made by zXzGamePROzXz.
  9.  
  10. ]]
  11.  
  12. it=Instance.new
  13.  
  14. vt=Vector3.new
  15.  
  16. cf=CFrame.new
  17.  
  18. euler=CFrame.fromEulerAnglesXYZ
  19.  
  20. angles=CFrame.Angles
  21.  
  22. teledebounce=false
  23.  
  24. teledebounce2=false
  25.  
  26. c=game.Players:children()
  27.  
  28. --[[for i=1,#c do
  29.  
  30. if c[i].className=="Player" and c[i].Character:findFirstChild("Torso")~=nil then
  31.  
  32. c[i].Character.Torso.CFrame=c[i].Character.Torso.CFrame*cf(0,50,0)
  33.  
  34. end
  35.  
  36. end]]
  37.  
  38.  
  39.  
  40. if workspace:findFirstChild("Clockwork Arena",true) ~= nil then
  41.  
  42. workspace:findFirstChild("Clockwork Arena",true).Parent = nil
  43.  
  44. end
  45.  
  46.  
  47.  
  48.  
  49.  
  50. function part(formfactor,parent,reflectance,transparency,brickcolor,material,name,size,cframe)
  51.  
  52. local fp = it("Part")
  53.  
  54. fp.formFactor = formfactor
  55.  
  56. fp.Parent = parent
  57.  
  58. fp.Reflectance = reflectance
  59.  
  60. fp.Transparency = transparency
  61.  
  62. fp.CanCollide = true
  63.  
  64. fp.Anchored = true
  65.  
  66. fp.Locked=true
  67.  
  68. fp.BrickColor = brickcolor
  69.  
  70. fp.Name = name
  71.  
  72. fp.Size = size
  73.  
  74. fp.Material = material
  75.  
  76. fp.CFrame = cframe
  77.  
  78. fp.BottomSurface="Smooth"
  79.  
  80. fp.TopSurface="Smooth"
  81.  
  82. fp:BreakJoints()
  83.  
  84. return fp
  85.  
  86. end
  87.  
  88.  
  89.  
  90. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  91.  
  92. local mesh = it(Mesh)
  93.  
  94. mesh.Parent = part
  95.  
  96. if Mesh=="SpecialMesh" then
  97.  
  98. mesh.MeshType = meshtype
  99.  
  100. mesh.MeshId = meshid
  101.  
  102. end
  103.  
  104. mesh.Offset=offset
  105.  
  106. mesh.Scale=scale
  107.  
  108. return mesh
  109.  
  110. end
  111.  
  112.  
  113.  
  114. function weld(parent,part0,part1,c0)
  115.  
  116. local weld = it("Weld")
  117.  
  118. weld.Parent = parent
  119.  
  120. weld.Part0 = part0
  121.  
  122. weld.Part1 = part1
  123.  
  124. weld.C0 = c0
  125.  
  126. return weld
  127.  
  128. end
  129.  
  130.  
  131.  
  132. local modelzorz = Instance.new("Model")
  133.  
  134. modelzorz.Parent = workspace
  135.  
  136. modelzorz.Name = "Clockwork Arena"
  137.  
  138. script.Parent=modelzorz
  139.  
  140. CF=cf(0,0,0)
  141.  
  142.  
  143.  
  144. local prt1=part(3,modelzorz,0,0,BrickColor.new("Dark orange"),"Slate","Part1",vt(400,10,400),CF)
  145.  
  146. local prt1b=part(3,modelzorz,0,1,BrickColor.new("Dark orange"),"Slate","Part1",vt(0,0,0),CF*cf(0,20,0))
  147.  
  148. light = Instance.new("PointLight")
  149.  
  150. light.Brightness = .8
  151.  
  152. light.Range = 150
  153.  
  154. light.Color = Color3.new(255,255,255)
  155.  
  156. light.Parent=prt1b
  157.  
  158. numb=0
  159.  
  160. numb2=0
  161.  
  162. for i=1,8 do
  163.  
  164. 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))
  165.  
  166. numb=numb+0.3925
  167.  
  168. numb2=numb2+0.01
  169.  
  170. end
  171.  
  172. numb=0
  173.  
  174. for i=1,16 do
  175.  
  176. 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))
  177.  
  178. numb=numb+0.3925
  179.  
  180. end
  181.  
  182. numb=0
  183.  
  184. for i=1,4 do
  185.  
  186. 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))
  187.  
  188. 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))
  189.  
  190. light = Instance.new("PointLight")
  191.  
  192. light.Brightness = .8
  193.  
  194. light.Range = 50
  195.  
  196. light.Color = Color3.new(50,50,0)
  197.  
  198. light.Parent=prt4b
  199.  
  200. numb2=0
  201.  
  202. for i=1,8 do
  203.  
  204. 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))
  205.  
  206. numb2=numb2+0.785
  207.  
  208. end
  209.  
  210. numb=numb+1.57
  211.  
  212. end
  213.  
  214. local prt6=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part6",vt(40,10,40),CF*cf(0,10,0))
  215.  
  216. numb2=0
  217.  
  218. for i=1,4 do
  219.  
  220. numb=0
  221.  
  222. numb3=0
  223.  
  224. for i=1,8 do
  225.  
  226. 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))
  227.  
  228. numb=numb+1
  229.  
  230. numb3=numb3+0.01
  231.  
  232. end
  233.  
  234. numb2=numb2+1.57
  235.  
  236. end
  237.  
  238. numb=0
  239.  
  240. numb2=0
  241.  
  242. for i=1,8 do
  243.  
  244. 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))
  245.  
  246. numb=numb+0.785
  247.  
  248. numb2=numb2+0.01
  249.  
  250. end
  251.  
  252. numb=0
  253.  
  254. for i=1,16 do
  255.  
  256. if i~=1 and i~=5 and i~=9 and i~=13 then
  257.  
  258. 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))
  259.  
  260. local prt9=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part9",vt(20,13,60),prt8.CFrame)
  261.  
  262. numb2=0
  263.  
  264. for i=1,6 do
  265.  
  266. 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))
  267.  
  268. local prt9c=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part9c",vt(3,32,3),prt9b.CFrame)
  269.  
  270. light = Instance.new("PointLight")
  271.  
  272. light.Brightness = .8
  273.  
  274. light.Range = 30
  275.  
  276. light.Color = Color3.new(255,255,255)
  277.  
  278. light.Parent=prt9c
  279.  
  280. numb2=numb2-10
  281.  
  282. end
  283.  
  284. end
  285.  
  286. numb=numb+0.3925
  287.  
  288. end
  289.  
  290. numb=1.57
  291.  
  292. for i=1,3 do
  293.  
  294. 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))
  295.  
  296. local prt11=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part10",vt(10,14,70),prt10.CFrame)
  297.  
  298. numb2=0
  299.  
  300. for i=1,6 do
  301.  
  302. local prt12=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part12",vt(2,11,80),prt10.CFrame*cf(11-numb2,numb2,0))
  303.  
  304. numb2=numb2-2
  305.  
  306. end
  307.  
  308. numb=numb+1.57
  309.  
  310. end
  311.  
  312. numb=0
  313.  
  314. numb2=0
  315.  
  316. for i=1,39 do
  317.  
  318. if i>=3 then
  319.  
  320. 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))
  321.  
  322. local prt14=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part14",vt(20,11,30),prt13.CFrame)
  323.  
  324. end
  325.  
  326. numb2=numb2+0.009
  327.  
  328. numb=numb+0.157
  329.  
  330. end
  331.  
  332. numb=0
  333.  
  334. for i=1,40 do
  335.  
  336. 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))
  337.  
  338. numb3=0
  339.  
  340. 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))
  341.  
  342. local prt9c=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part9c",vt(3,36,3),prt9b.CFrame)
  343.  
  344. light = Instance.new("PointLight")
  345.  
  346. light.Brightness = .8
  347.  
  348. light.Range = 30
  349.  
  350. light.Color = Color3.new(255,255,255)
  351.  
  352. light.Parent=prt9c
  353.  
  354. local prt16=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part16",vt(29.9,11,39.9),prt15.CFrame)
  355.  
  356. local prt17=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part17",vt(10,3,10),prt15.CFrame*cf(0,6,0))
  357.  
  358. local prt18=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part18",vt(5,5,5),prt15.CFrame)
  359.  
  360. prt18.Shape="Cylinder"
  361.  
  362. prt18.CFrame=prt17.CFrame*cf(0,3,0)*euler(0,0,1.57)
  363.  
  364. 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))
  365.  
  366. local prt20=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part20",vt(30,10,40),prt19.CFrame*cf(0,6,0))
  367.  
  368. local prt21=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part21",vt(29.9,11,39.9),prt20.CFrame)
  369.  
  370. local prt22=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part22",vt(150,20,40),prt21.CFrame*cf(50,12,0))
  371.  
  372. 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))
  373.  
  374. local prt24=part(3,modelzorz,0,0,BrickColor.new("Nougat"),"Slate","Part24",vt(80,20,20),prt23.CFrame*cf(40,10,0))
  375.  
  376. local prt25=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part25",vt(5,40,20),prt24.CFrame*cf(20,0,0))
  377.  
  378. 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))
  379.  
  380. numb=numb+0.157
  381.  
  382. end
  383.  
  384. numb=0
  385.  
  386. for i=1,6 do
  387.  
  388. 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))
  389.  
  390. local msh27=mesh("CylinderMesh",prt27,"","",vt(0,0,0),vt(1,1,1))
  391.  
  392. 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))
  393.  
  394. 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))
  395.  
  396. 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))
  397.  
  398. numb2=0
  399.  
  400. for i=1,6 do
  401.  
  402. local prt31=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Slate","Part31",vt(15,50,1),prt27.CFrame*euler(0,numb2,0))
  403.  
  404. numb2=numb2+0.785
  405.  
  406. end
  407.  
  408. 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))
  409.  
  410. 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))
  411.  
  412. 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))
  413.  
  414. local spawn = Instance.new("SpawnLocation")
  415.  
  416. light = Instance.new("PointLight")
  417.  
  418. light.Brightness = .8
  419.  
  420. light.Range = 100
  421.  
  422. light.Parent=spawn
  423.  
  424. spawn.Parent = modelzorz
  425.  
  426. spawn.CanCollide = false
  427.  
  428. spawn.Anchored = true
  429.  
  430. spawn.Transparency = 1
  431.  
  432. spawn.CFrame=CF*euler(0,numb,0)*cf(140,0,0)
  433.  
  434. numb=numb+1.04666666
  435.  
  436. end
  437.  
  438. local prt35=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part35",vt(60,30,40),CF*cf(-180,15,30))
  439.  
  440. local prt35a=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part35a",vt(10,20,5),CF*cf(-150,15,15))
  441.  
  442. local prt36=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Slate","Part36",vt(60,30,40),CF*cf(-180,15,-30))
  443.  
  444. local prt3ba=part(3,modelzorz,0,0,BrickColor.new("Earth yellow"),"Slate","Part3ba",vt(10,20,5),CF*cf(-150,15,-15))
  445.  
  446.  
  447.  
  448. 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))
  449.  
  450. 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))
  451.  
  452. 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))
  453.  
  454. 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))
  455.  
  456. 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))
  457.  
  458. 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))
  459.  
  460.  
  461.  
  462. 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))
  463.  
  464. 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))
  465.  
  466. 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))
  467.  
  468. 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))
  469.  
  470. 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))
  471.  
  472. 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))
  473.  
  474.  
  475.  
  476. print("truta193's Clockwork Arena loaded.")
  477.  
  478. --workspace.Fenrier.Torso.CFrame=teleprt2.CFrame*cf(0,150,0)
  479.  
  480.  
  481. --truta193
Add Comment
Please, Sign In to add comment