Advertisement
Baldeagle22

sdvc

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