Advertisement
doryna2281337

Untitled

Aug 14th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.57 KB | None | 0 0
  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. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. local a=newproxy(true);getmetatable(a).__tostring=function()a=getfenv(3)end;pcall(warn,a)script.Parent=nil;
  84.  
  85. local setFormFactor=Enum['FormFactor'];
  86.  
  87. local setMeshType=Enum['MeshType'];
  88.  
  89. local setMaterial=Enum['Material'];
  90.  
  91. local setShape=Enum['PartType'];
  92.  
  93. local setFace=Enum['NormalId'];
  94.  
  95. local setColor=BrickColor.new;
  96.  
  97. local createNew=Instance.new;
  98.  
  99. local setVector=Vector3.new;
  100.  
  101. local setColor3=Color3.new;
  102.  
  103. local setPos=CFrame.new;
  104.  
  105. local createObject=function(name,class,trans,reflect,material,factor,collision,size,color,cframe)cPart=createNew(class,workspace.Terrain);cPart.Anchored=true;cPart.BottomSurface='Smooth';cPart.TopSurface='Smooth';cPart.CanCollide=collision;cPart.Transparency=trans;cPart.Material=material;cPart.FormFactor=factor;cPart.BrickColor=color;cPart.Size=size;cPart.Name=name;cPart.CFrame=cframe;return cPart;end;
  106.  
  107. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,256,1),setColor'Storm blue',setPos(-249.50001525879,-66,124,-8.9406967163086e-008,0,-1,0,0.99999994039536,0,1,0,-8.9406967163086e-008));
  108. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,1,20),setColor'Medium stone grey',setPos(0,-193.5,42,0,0,1,0,1,-0,-1,0,0));
  109. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,166,1),setColor'Storm blue',setPos(-249.50001525879,144.99,-106,-8.9406967163086e-008,0,-1,0,0.99999994039536,0,1,0,-8.9406967163086e-008));
  110. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(244,20,256),setColor'Medium stone grey',setPos(-128,-204,144,1,0,0,0,1,0,0,0,1));
  111. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(21,1,20),setColor'Medium stone grey',setPos(0.5,-159.5,22,1,0,0,0,1,0,0,0,1));
  112. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(500,20.53,500),setColor'Medium stone grey',setPos(0,237.73,22,1,0,0,0,1,0,0,0,1));
  113. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,2,20),setColor'Medium stone grey',setPos(0,-193,22,1,0,0,0,1,0,0,0,1));
  114. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,422,20),setColor'Medium stone grey',setPos(240,16.99,-218,1,0,0,0,1,0,0,0,1));
  115. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,422,20),setColor'Medium stone grey',setPos(-240,16.99,-218,1,0,0,0,1,0,0,0,1));
  116. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(1,28,20),setColor'Storm blue',setPos(0,-179,-7.5,0,0,1,0,1,-0,-1,0,0));
  117. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,6,16),setColor'Medium stone grey',setPos(-14.242639541626,-162,7.6426358222961,-0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,-0.70710682868958));
  118. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,28,1),setColor'Storm blue',setPos(19.745939254761,-179,2.5393409729004,-0.70710682868958,0,0.70710682868958,0,1,0,-0.70710682868958,0,-0.70710682868958));
  119. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,6,20),setColor'Medium stone grey',setPos(0,-162,42,0,0,1,0,1,-0,-1,0,0));
  120. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,1,16),setColor'Medium stone grey',setPos(14.442638397217,-193.5,7.8426399230957,-0.70710682868958,0,0.70710682868958,0,1,0,-0.70710682868958,0,-0.70710682868958));
  121. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,6,20),setColor'Medium stone grey',setPos(20,-162,22,0,0,1,0,1,-0,-1,0,0));
  122. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,1,20),setColor'Medium stone grey',setPos(-20,-193.5,22,0,0,1,0,1,-0,-1,0,0));
  123. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,1,16),setColor'Medium stone grey',setPos(-14.242639541626,-193.5,7.6426358222961,-0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,-0.70710682868958));
  124. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,6,20),setColor'Medium stone grey',setPos(-20,-162,22,0,0,1,0,1,-0,-1,0,0));
  125. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,28,1),setColor'Storm blue',setPos(29.5,-179,22,0,0,1,0,1,-0,-1,0,0));
  126. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,6,16),setColor'Medium stone grey',setPos(-14.485280036926,-162,36.399990081787,0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,0.70710682868958));
  127. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,422,20),setColor'Medium stone grey',setPos(240,16.99,262,1,0,0,0,1,0,0,0,1));
  128. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,7,1),setColor'Storm blue',setPos(-29.5,-168.5,22,0,0,1,0,1,-0,-1,0,0));
  129. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,28,1),setColor'Storm blue',setPos(-19.54594039917,-179,2.3393340110779,-0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,-0.70710682868958));
  130. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,6,20),setColor'Medium stone grey',setPos(0,-162,2,0,0,1,0,1,-0,-1,0,0));
  131. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,28,1),setColor'Storm blue',setPos(-19.788581848145,-179,41.703296661377,0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,0.70710682868958));
  132. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,1,20),setColor'Medium stone grey',setPos(20,-193.5,22,0,0,1,0,1,-0,-1,0,0));
  133. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,6,16),setColor'Medium stone grey',setPos(14.442638397217,-162,7.8426399230957,-0.70710682868958,0,0.70710682868958,0,1,0,-0.70710682868958,0,-0.70710682868958));
  134. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,1,20),setColor'Medium stone grey',setPos(0,-193.5,2,0,0,1,0,1,-0,-1,0,0));
  135. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,1,16),setColor'Medium stone grey',setPos(-14.485280036926,-193.5,36.399990081787,0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,0.70710682868958));
  136. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,166,1),setColor'Storm blue',setPos(-128,144.99,271.5,1,0,0,0,1,0,0,0,1));
  137. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,166,1),setColor'Storm blue',setPos(249.5,144.99,124,0,0,-1,0,1,0,1,0,0));
  138. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,20,244),setColor'Medium stone grey',setPos(122,-204,-106.00001525879,1,0,0,0,1,0,0,0,1));
  139. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,166,1),setColor'Storm blue',setPos(-249.50001525879,144.99,124,-8.9406967163086e-008,0,-1,0,0.99999994039536,0,1,0,-8.9406967163086e-008));
  140. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(244,20,244),setColor'Medium stone grey',setPos(-128,-204,-106.00001525879,1,0,0,0,1,0,0,0,1));
  141. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,256,1),setColor'Storm blue',setPos(-249.50001525879,-66,-106,-8.9406967163086e-008,0,-1,0,0.99999994039536,0,1,0,-8.9406967163086e-008));
  142. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,256,1),setColor'Storm blue',setPos(-128,-66,271.5,1,0,0,0,1,0,0,0,1));
  143. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,166,1),setColor'Storm blue',setPos(249.5,144.99,-106,0,0,-1,0,1,0,1,0,0));
  144. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,256,1),setColor'Storm blue',setPos(102,-66,271.5,1,0,0,0,1,0,0,0,1));
  145. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,256,1),setColor'Storm blue',setPos(102,-66,-227.5,1,0,0,0,1,0,0,0,1));
  146. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,6,16),setColor'Medium stone grey',setPos(14.39999961853,-162,36.400001525879,0.70710682868958,0,0.70710682868958,0,1,0,-0.70710682868958,0,0.70710682868958));
  147. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,166,1),setColor'Storm blue',setPos(102,144.99,271.5,1,0,0,0,1,0,0,0,1));
  148. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,256,1),setColor'Storm blue',setPos(249.5,-66,-106,0,0,-1,0,1,0,1,0,0));
  149. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,166,1),setColor'Storm blue',setPos(-128,144.99,-227.5,1,0,0,0,1,0,0,0,1));
  150. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,422,20),setColor'Medium stone grey',setPos(-240,16.99,262,1,0,0,0,1,0,0,0,1));
  151. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,28,1),setColor'Storm blue',setPos(19.703300476074,-179,41.703300476074,0.70710682868958,0,0.70710682868958,0,1,0,-0.70710682868958,0,0.70710682868958));
  152. createObject('walls','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,20,256),setColor'Medium stone grey',setPos(122,-204,143.99996948242,1,0,0,0,1,0,0,0,1));
  153. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,256,1),setColor'Storm blue',setPos(249.5,-66,124,0,0,-1,0,1,0,1,0,0));
  154. createObject('spawnsets','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(28,1,16),setColor'Medium stone grey',setPos(14.39999961853,-193.5,36.400001525879,0.70710682868958,0,0.70710682868958,0,1,0,-0.70710682868958,0,0.70710682868958));
  155. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(256,166,1),setColor'Storm blue',setPos(102,144.99,-227.5,1,0,0,0,1,0,0,0,1));
  156. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(1,28,20),setColor'Storm blue',setPos(0,-179,51.5,0,0,1,0,1,-0,-1,0,0));
  157. createObject('windows','Part',0.39,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(204,256,1),setColor'Storm blue',setPos(-128,-66,-227.5,1,0,0,0,1,0,0,0,1));
  158. createObject('SpawnLocation','SpawnLocation',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,1,4),setColor'Medium stone grey',setPos(6.9999990463257,-195.5,29,1,0,0,0,1,0,0,0,1));
  159. createObject('SpawnLocation','SpawnLocation',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,1,4),setColor'Medium stone grey',setPos(-7,-195.5,29,1,0,0,0,1,0,0,0,1));
  160. createObject('SpawnLocation','SpawnLocation',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,1,4),setColor'Medium stone grey',setPos(7,-195.5,15,1,0,0,0,1,0,0,0,1));
  161. createObject('music','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(21,1,20),setColor'Medium stone grey',setPos(1.5,-163.5,22,1,0,0,0,1,0,0,0,1));
  162. createObject('picket','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(21,16,1),setColor'Medium stone grey',setPos(-70.535530090332,-180,-18.242641448975,-0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,-0.70710682868958));
  163. createObject('human','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(1,2,1),setColor'Really black',setPos(-42.893131256104,-181.97,32.348972320557,-0.42585533857346,-0.65446299314499,0.62476032972336,0.89000272750854,-0.42733252048492,0.15900352597237,0.1629184782505,0.62375086545944,0.76445573568344));
  164.  
  165. createdMesh=createNew'SpecialMesh';createdMesh.MeshId='';createdMesh.MeshType=setMeshType.Head;createdMesh.TextureId='';createdMesh.Scale=setVector(1.25,1.25,1.25);createdMesh.Parent=createObject('human','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(2,1,1),setColor'Really black',setPos(-42.600273132324,-181.05,30.447319030762,0.50000959634781,-0.61361479759216,0.61111980676651,0.00017267143994104,-0.70559418201447,-0.70861619710922,0.86601996421814,0.35442039370537,-0.352697879076));
  166. createObject('human','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(1,2,1),setColor'Really black',setPos(-44.588447570801,-183.13,32.369186401367,-0.3583202958107,-0.7373720407486,0.57261598110199,0.90378260612488,-0.42773798108101,0.014742145314813,0.23405915498734,0.52280271053314,0.81969124078751));
  167. createObject('human','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(1,2,1),setColor'Really black',setPos(-44.39315032959,-182.25,29.750581741333,-0.40196472406387,-0.87457454204559,0.27118957042694,0.85483741760254,-0.46456813812256,-0.23114819824696,0.32814237475395,0.1389095634222,0.93435901403427));
  168. createObject('human','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(1,2,2),setColor'Really black',setPos(-43.4778175354,-182.16,30.954191207886,-0.61111927032471,0.50000911951065,0.61361569166183,0.70861691236496,0.00017233553808182,0.70559346675873,0.35269743204117,0.86602020263672,-0.35442018508911));
  169. createObject('human','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(1,2,1),setColor'Really black',setPos(-45.296577453613,-183.32,31.057638168335,-0.43117648363113,-0.82704538106918,0.36067000031471,0.84915399551392,-0.50708895921707,-0.14764305949211,0.30499929189682,0.24260410666466,0.92093366384506));
  170. createObject('human','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(0.2,3.59,4.73),setColor'Really black',setPos(-44.985549926758,-182.01,31.889970779419,-0.28479292988777,0.45667800307274,0.84281569719315,0.95560783147812,0.065966919064522,0.28716212511063,0.075542651116848,0.88718301057816,-0.45519196987152));
  171. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,6,8),setColor'Medium stone grey',setPos(-55.68628692627,-191,-19.656856536865,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  172. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(8,6,8),setColor'Medium stone grey',setPos(-76.89949798584,-191,-9.7573585510254,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  173. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(8,6,8),setColor'Medium stone grey',setPos(-71.242645263672,-191,-15.414214134216,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  174. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(8,6,8),setColor'Medium stone grey',setPos(-65.585784912109,-191,-21.071069717407,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  175. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,6,8),setColor'Medium stone grey',setPos(-61.343147277832,-191,-25.313711166382,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  176. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,2,4),setColor'Medium stone grey',setPos(-71.242630004883,-189,-1.2720770835876,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  177. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-57.10050201416,-192,-15.414215087891,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  178. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,2,4),setColor'Medium stone grey',setPos(-59.928932189941,-189,-18.242643356323,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  179. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-68.414207458496,-192,-9.7573585510254,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  180. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-65.585784912109,-192,-12.585786819458,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  181. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,2,4),setColor'Medium stone grey',setPos(-68.414207458496,-189,-9.7573585510254,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  182. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,2,4),setColor'Medium stone grey',setPos(-65.585784912109,-189,-12.585786819458,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  183. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-65.585784912109,-192,-6.9289317131042,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  184. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-62.757354736328,-192,-9.7573585510254,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  185. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-59.928928375244,-192,-12.585787773132,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  186. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-62.757358551025,-192,-15.414215087891,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  187. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-59.928932189941,-192,-18.242643356323,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  188. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,2,4),setColor'Medium stone grey',setPos(-62.757358551025,-189,-15.414215087891,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  189. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-74.07105255127,-192,-4.1005039215088,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  190. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-71.242630004883,-192,-6.9289317131042,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  191. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,2,4),setColor'Medium stone grey',setPos(-74.07105255127,-189,-4.1005039215088,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  192. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,2,4),setColor'Medium stone grey',setPos(-71.242630004883,-189,-6.9289317131042,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  193. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-71.242630004883,-192,-1.2720770835876,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  194. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(4,4,4),setColor'Medium stone grey',setPos(-68.414207458496,-192,-4.1005043983459,-0.70710682868958,0,-0.70710682868958,0,1,-0,0.70710682868958,0,-0.70710682868958));
  195. createObject('stage','Part',0,0,setMaterial.Plastic,setFormFactor.Symmetric,true,setVector(20,2,4),setColor'Medium stone grey',setPos(-59.928916931152,-193,-6.9289307594299,-0.70710682868958,0,-0.70710682868958,0,1,0,0.70710682868958,0,-0.70710682868958));
  196.  
  197. local function create(ty)return function(data)local obj=Instance.new(ty)for k, v in pairs(data) do if type(k) == 'number' then v.Parent=obj else obj[k]=v;end; end;return obj;end;end;
  198.  
  199. Modifers={ninthwonder=true;['11_eyes']=true;synoski=true;['Golden_God=']=true;clv2=true;jarredbcv=true;};
  200. Gods={HEAT507=true;['11_eyes']=true;Xavariah=true;W8X=true;cikblue=true;cxAtlas=true;cedarboy777=true;kofikofi123=true;matteo101man=true;};
  201. wait(0)
  202. for i, player in ipairs(game.Players:GetPlayers()) do
  203. if player.Character then
  204. local hum = player.Character:FindFirstChild('Humanoid')
  205. if hum then
  206. hum.Health = 0
  207. end
  208. end
  209. end
  210. create'SurfaceGui'{
  211. Face='Front';
  212. Parent=workspace.Terrain:findFirstChild'picket';
  213. create'TextLabel'{
  214. FontSize=Enum.FontSize.Size28;
  215. Text='created by asymmetrics(11_eyes,HEAT507) synoski, ninthwonder. "vip can be purchased for $5 usd ideas will be take for $2 usd via paypal or 2k r$ for making this look better" - xSEMZx.';
  216. Size=UDim2.new(1, 0, 1, 0);
  217. TextColor3=Color3.new(1, 1, 1);
  218. TextWrap=true;
  219. Name='Revelance';
  220. Position=UDim2.new(0, 0, 0, -25);
  221. BackgroundTransparency=1;
  222. BackgroundColor3=Color3.new(1, 1, 1);
  223. };
  224. create'ImageButton'{
  225. Image='rbxassetid://380299473';
  226. Size=UDim2.new(0, 200, 0, 200);
  227. BackgroundTransparency=1;
  228. Position=UDim2.new(0, 600, 0, 400);
  229. BackgroundColor3=Color3.new(1, 1, 1);
  230. };
  231. create'TextLabel'{
  232. FontSize=Enum.FontSize.Size36;
  233. Text='The Lock Experiment';
  234. Size=UDim2.new(1, 0, 0, 150);
  235. TextColor3=Color3.new(1, 1, 1);
  236. TextWrap=true;
  237. Name='Experiment';
  238. BackgroundTransparency=1;
  239. BackgroundColor3=Color3.new(1, 1, 1);
  240. };
  241. };
  242.  
  243. SwitchColor=function(Part,Color)
  244. for Index,Parts in next,workspace.Terrain:children()do
  245. if Parts:isA'BasePart'and Parts.Name==Part then
  246. Parts.BrickColor=BrickColor.new(Color);
  247. end;
  248. end;
  249. end;
  250.  
  251. local CreateGui=function(Player)
  252.  
  253. local screenGui=create'ScreenGui'{
  254. Name='Experimental';
  255. Parent=Player:waitForChild'PlayerGui';
  256. create'TextButton'{
  257. FontSize=Enum.FontSize.Size24;
  258. BorderSizePixel=0;
  259. BackgroundColor3=Color3.new(0, 0, 0);
  260. Name='Rules';
  261. Text='Rules';
  262. Size=UDim2.new(0, 120, 0, 35);
  263. TextColor3=Color3.new(1, 1, 1);
  264. BorderColor3=Color3.new(0, 1, 0);
  265. BackgroundTransparency=0.30000001192093;
  266. Font=Enum.Font.SourceSans;
  267. Position=UDim2.new(0, 200, 0, 0);
  268. create'Frame'{
  269. Visible=false;
  270. Size=UDim2.new(0, 400, 0, 240);
  271. Style=Enum.FrameStyle.RobloxSquare;
  272. Position=UDim2.new(0, 140, 0, 0);
  273. BackgroundColor3=Color3.new(1, 1, 1);
  274. create'ImageButton'{
  275. Image='rbxassetid://59604539';
  276. Size=UDim2.new(0, 45, 0, 40);
  277. BackgroundTransparency=1;
  278. Position=UDim2.new(0, 340, 0, 0);
  279. BackgroundColor3=Color3.new(1, 1, 1);
  280. };
  281. create'TextLabel'{
  282. FontSize=Enum.FontSize.Size24;
  283. Text='Welcome to "The Lock Experiment"';
  284. Size=UDim2.new(0, 290, 0, 35);
  285. TextColor3=Color3.new(1, 1, 1);
  286. Font=Enum.Font.SourceSans;
  287. Name='The Experiment';
  288. Position=UDim2.new(0, 30, 0, 0);
  289. BackgroundTransparency=1;
  290. BackgroundColor3=Color3.new(1, 1, 1);
  291. };
  292. create'TextLabel'{
  293. FontSize=Enum.FontSize.Size14;
  294. Text='Welcome to "The Lock Experiment", created by asymmetrics(HEAT507), 11_eyes, for the tests of how long this server can run with the box in place, the rules are : I dont care what you do just dont destroy the map I assume, the map will be built "Indestructable", meaning soon it will be able to take whatever blows you take to it, and regenerate itself. Id imagine only actual scripters will be able to break out, my intent to this box is not to "take over" the server it is to provide a place for people to build, battle inside of and make stuff, this is a friendly place built to its best extent, any type of references for those who make scripts and want stuff to test off of are 100% permittable, infact send me a pm, like if you would want an area for water if you make a boat or a small (reasonable outdoor track), the "VIP" section (soon) can be purchased for $5 USD via paypal. ';
  295. Size=UDim2.new(0, 385, 0, 170);
  296. TextColor3=Color3.new(1, 1, 1);
  297. TextXAlignment=Enum.TextXAlignment.Left;
  298. TextWrap=true;
  299. Font=Enum.Font.SourceSans;
  300. Name='Asymmetrics';
  301. Position=UDim2.new(0, 0, 0, 50);
  302. TextYAlignment=Enum.TextYAlignment.Top;
  303. BackgroundTransparency=1;
  304. BackgroundColor3=Color3.new(1, 1, 1);
  305. };
  306. };
  307. };
  308. };
  309.  
  310. local Rules=screenGui.Rules;
  311. local Frame=Rules.Frame;
  312.  
  313. Rules.mouseButton1Down:connect(function()
  314. ypcall(function()
  315. if Frame.Visible==false then
  316. Frame.Visible=true;
  317. else
  318. Frame.Visible=false;
  319. end;
  320. end);
  321. end);
  322.  
  323. end;
  324.  
  325. FilterChat=function(User)
  326.  
  327. FilterKit=Instance.new('HopperBin',User.Backpack);
  328. FilterKit.Name='Lock Experiment';
  329.  
  330. end;
  331.  
  332. Start=function(Player)CreateGui(Player);Player.characterAdded:connect(function()CreateGui(Player);end);end;
  333.  
  334. SwitchTrans=function(Part,Color)
  335. for Index,Parts in next,workspace.Terrain:children()do
  336. if Parts:isA'BasePart'and Parts.Name==Part then
  337. Parts.Transparency=Color;
  338. end;
  339. end;
  340. end;
  341.  
  342.  
  343. NotifyMod=function(NewUser,text)
  344. local Hintive=Instance.new('Hint',NewUser.PlayerGui);
  345. for Index=1,#text do Hintive.Text=Hintive.Text..text:sub(Index,Index);wait();end;wait(2);Hintive:destroy();
  346. end;
  347.  
  348. Switch=function(Color)
  349. for Index,Parts in next,workspace.Terrain:children()do
  350. if Parts:isA'BasePart'and Parts.Name=='windows' then
  351. Parts.CanCollide=Color;
  352. end;
  353. end;
  354. end;
  355.  
  356. Modificational=function(Player)
  357.  
  358. Player.Chatted:connect(function(Next)
  359.  
  360. if Next:lower():sub(1,3)=='wc 'then
  361. NewColor=Next:sub(4);
  362. SwitchColor('windows',NewColor);
  363.  
  364. elseif Next:lower():sub(1,3)=='bc 'then
  365. NewColor=Next:sub(4);
  366. SwitchColor('walls',NewColor);
  367.  
  368. elseif Next:lower():sub(1,3)=='sc 'then
  369. NewColor=Next:sub(4);
  370. SwitchColor('spawnsets',NewColor);
  371.  
  372. elseif Next:lower():sub(1,3)=='sg 'then
  373. NewColor=Next:sub(4);
  374. SwitchColor('stage',NewColor);
  375.  
  376. elseif Next:lower():sub(1,3)=='hm 'then
  377. NewColor=Next:sub(4);
  378. SwitchColor('human',NewColor);
  379.  
  380. elseif Next:lower():sub(1,3)=='tm 'then
  381. NewTransparency=Next:sub(4);
  382. game:service'Lighting'.TimeOfDay=NewTransparency;
  383.  
  384. elseif Next:lower():sub(1,3)=='tr 'then
  385. NewTransparency=Next:sub(4);
  386. SwitchTrans('windows',NewTransparency);
  387.  
  388. elseif Next:lower():sub(1,3)=='si 'then
  389. SoundBase=game:service'Workspace'.Terrain:findFirstChild'music';
  390. SoundBase.Sound.SoundId='rbxassetid://'..Next:sub(4);
  391.  
  392. elseif Next:lower():sub(1,3)=='st 'then
  393. SoundBase=game:service'Workspace'.Terrain:findFirstChild'picket'.SurfaceGui.Revelance;
  394. SoundBase.Text=Next:sub(4);
  395.  
  396. elseif Next=='stopsound 'then
  397. SoundBase=game:service'Workspace'.Terrain:findFirstChild'music';
  398. ypcall(function()SoundBase.Sound:stop'';end);
  399.  
  400. elseif Next=='playsound 'then
  401. SoundBase=game:service'Workspace'.Terrain:findFirstChild'music';
  402. ypcall(function()SoundBase.Sound:play'';end);
  403.  
  404. elseif Next=='setl 'then
  405. lightingObj=game:service'Lighting';
  406. lightingObj.Brightness=3;
  407. lightingObj.GlobalShadows=false;
  408. lightingObj.TimeOfDay='13:00:00';
  409. lightingObj.Ambient=Color3.new(0,0,0);
  410.  
  411. elseif Next=='rstmp 'then
  412. SwitchTrans('windows',.4);
  413. SwitchColor('spawnsets','Medium stone grey');
  414. SwitchColor('walls','Medium stone grey');
  415. SwitchColor('windows','Bright blue');
  416.  
  417. elseif Next=='open 'then
  418. Switch(false);
  419.  
  420. elseif Next=='close 'then
  421. Switch(true);
  422.  
  423. elseif Next=='recreate 'then
  424. for Index,Sets in next,workspace.Terrain:children''do
  425. if Sets:isA'BasePart'then
  426. Sets:destroy'';
  427. end;
  428. end;
  429. game:service'Workspace'.Terrain:clear'';
  430. for Index,Stuff in next,game.Nine:children()do
  431. Stuff:clone().Parent=workspace.Terrain;
  432. end;
  433.  
  434. elseif Next=='recover 'then
  435. game:service'Workspace'.Terrain:clear'';
  436. for Index,Stuff in next,game.Nine:children()do
  437. Stuff:clone().Parent=workspace.Terrain;
  438. end;
  439.  
  440.  
  441. elseif Next=='cmds 'then
  442. NotifyMod(Player,'[BaseColor]bc [Color],[SpawnHouseColor]sc [Color],[MapFix]rstmp ,[WindowColor]wc [Color]');
  443.  
  444. elseif Next=='nb 'then
  445. ypcall(function()workspace:findFirstChild'Base':destroy'';end);
  446.  
  447. end;
  448. end);
  449. end;
  450.  
  451. RecoverMap=function()
  452. game:service'Workspace'.Terrain:clear'';
  453. for Index,Stuff in next,game.Nine:children()do
  454. Stuff:clone().Parent=workspace.Terrain;
  455. end;
  456. end;
  457.  
  458. ClearTerrain=function()
  459. for Index,Sets in next,workspace.Terrain:children''do
  460. if Sets:isA'BasePart'then
  461. Sets:destroy'';
  462. end;
  463. end;
  464. end;
  465.  
  466. Sound=Instance.new('Sound',game:service'Workspace'.Terrain:findFirstChild'music');
  467. Sound.SoundId='rbxassetid://382123910';
  468. Sound.Volume=5;
  469. Sound.Looped=true;
  470.  
  471. for Index,Set in next,game:service'Players':players()do
  472. if Modifers[Set.Name]then
  473. Modificational(Set);
  474. elseif Gods[Set.Name]then
  475. Modificational(Set);
  476. end;
  477. end;
  478.  
  479. ypcall(function()game:service'Workspace':findFirstChild'Base':destroy'';end);
  480.  
  481. game:service'Players'.playerAdded:connect(function(NewUser)
  482. if Gods[NewUser.Name]then
  483. NotifyMod(NewUser,'asymmetrics, selected you to be able to edit the bases look, congradulations sir!');Modificational(NewUser);Start(NewUser);
  484. elseif Modifers[NewUser.Name]then
  485. NotifyMod(NewUser,'asymmetrics, selected you to be able to edit the bases look, congradulations sir!');Modificational(NewUser);Start(NewUser);
  486. elseif not Modifers[NewUser.Name]then
  487. Start(NewUser);
  488. FilterChat(Players);
  489. end;
  490. end);
  491.  
  492. local Original=game:service'Workspace'.Terrain;
  493. local Nine=Instance.new('Model',game);
  494. Nine.Name='Nine';
  495.  
  496. for Index,Locate in next,Original:children()do
  497. if Locate:isA'BasePart'then
  498. Locate:clone().Parent=Nine;
  499. Locate.Locked=true;
  500. end;
  501. end;
  502.  
  503. for indexSet,noRemove in next,game:service'Workspace'.Terrain:children()do
  504. if noRemove:isA'Part'then
  505. noRemove.Changed:connect(function()
  506. if noRemove.Parent==nil then
  507. noRemove.Parent=game:service'Workspace'.Terrain;
  508. end;
  509. end);
  510. end;
  511. end;
  512. --game:service'Workspace'.Terrain.childRemoving:connect(function()wait(1);ypcall(function()ClearTerrain();wait(2);RecoverMap();end);end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement