Advertisement
mohamedkammoun66

Untitled

Feb 10th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.14 KB | None | 0 0
  1. ------------------------------[[ Sky Base made By luaModelMaker ]]------------------------------
  2. script.Parent = nil
  3. script.Name = "Sky Base From luaModelMaker"
  4. ------------------------------------------------------------------------------------<
  5. Workspace = Game:GetService("Workspace");
  6. Players = Game:GetService("Players");
  7. Lighting = Game:GetService("Lighting");
  8. ScriptContext = Game:GetService("ScriptContext");
  9. ------------------------------------------------------------------------------------<
  10. AdminOwner = "MOHAMEDKAMMOUN01"
  11. Adminstrator = "MOHAMEDKAMMOUN01"
  12. Admins = {"tindmikael"}
  13. Make_Message = true -- Do You want Loading Message? Yes = true, No = false
  14. ------------------------------------------------------------------------------------<
  15. function MakeMessage(Txt)
  16. local Message = Instance.new("Message", Workspace)
  17. Message.Name = "Sky Base StatMessage"
  18. Message.Text = Txt
  19. function Message_Clear()
  20. Message:remove()
  21. end
  22. end
  23.  
  24. Small = 3
  25. Normal = 5
  26. Ex = 7
  27. ------------------------------------------------------------------------------------<
  28. function Brick(parent)
  29. a = Instance.new("Part", parent)
  30. a.TopSurface = "Smooth"
  31. a.BottomSurface = "Smooth"
  32. a.Anchored = true
  33. a.Locked = true
  34. a.formFactor = "Custom"
  35. return a
  36. end
  37.  
  38. function Beep()
  39. local BeepSound = Instance.new("Sound", game.Workspace)
  40. BeepSound.Volume = Small
  41. BeepSound.Pitch = 0.7
  42. BeepSound.SoundId = "http://roblox.com/asset/?id=10209260"
  43. BeepSound.Name = "LuaModelMaker Beep"
  44. BeepSound:Play()
  45. Wait(Small)
  46. BeepSound:remove()
  47. end
  48.  
  49.  
  50. ------------------------------------------------------------------------------------<
  51. ------------------------------------------------------------------------------------<
  52. local SkyBase = Instance.new("Model", Workspace)
  53. SkyBase.Name = "LuaModelMaker Sky Base"
  54.  
  55. local S = Instance.new("SpawnLocation", SkyBase)
  56. S.Name = "Floor Spawn"
  57. S.Duration = 0
  58. S.TopSurface = "Smooth"
  59. S.BottomSurface = "Smooth"
  60. S.Anchored = true
  61. S.formFactor = "Custom"
  62. S.BrickColor = BrickColor.new("Really black")
  63. S.Size = Vector3.new(50, 1, 50)
  64. S.CFrame = CFrame.new(0, 50.1, 0)
  65.  
  66. local Wall1 = Brick(SkyBase)
  67. Wall1.Name = "Wall #1"
  68. Wall1.BrickColor = BrickColor.new("Bright bluish green")
  69. Wall1.Transparency = 0.5
  70. Wall1.Size = Vector3.new(1, 19.2, 50)
  71. Wall1.CFrame = CFrame.new(-24.5, 60.2, 0)
  72.  
  73. local Wall2 = Brick(SkyBase)
  74. Wall2.Name = "Wall #2"
  75. Wall2.BrickColor = BrickColor.new("Bright bluish green")
  76. Wall2.Transparency = 0.5
  77. Wall2.Size = Vector3.new(1, 19.2, 50)
  78. Wall2.CFrame = CFrame.new(24.5, 60.2, 0)
  79.  
  80. local Wall3 = Brick(SkyBase)
  81. Wall3.Name = "Wall #3"
  82. Wall3.BrickColor = BrickColor.new("Bright bluish green")
  83. Wall3.Transparency = 0.5
  84. Wall3.Size = Vector3.new(48, 19.2, 1.2)
  85. Wall3.CFrame = CFrame.new(0, 60.2, -24.6)
  86.  
  87. local Door = Brick(SkyBase)
  88. Door.Name = "Door"
  89. Door.BrickColor = BrickColor.new("Really blue")
  90. Door.Transparency = 0
  91. Door.Size = Vector3.new(10, 19.2, 1.2)
  92. Door.CFrame = CFrame.new(0, 60.2, 24.4)
  93.  
  94. local Wall4 = Brick(SkyBase)
  95. Wall4.Name = "Wall #4"
  96. Wall4.BrickColor = BrickColor.new("Bright bluish green")
  97. Wall4.Transparency = 0.5
  98. Wall4.Size = Vector3.new(19, 19.2, 1.2)
  99. Wall4.CFrame = CFrame.new(14.5, 60.2, 24.4)
  100.  
  101. local Wall5 = Brick(SkyBase)
  102. Wall5.Name = "Wall #5"
  103. Wall5.BrickColor = BrickColor.new("Bright bluish green")
  104. Wall5.Transparency = 0.5
  105. Wall5.Size = Vector3.new(19, 19, 1.2)
  106. Wall5.CFrame = CFrame.new(-14.5, 60.1, 24.4)
  107.  
  108. local Roof = Brick(SkyBase)
  109. Roof.Name = "Roof"
  110. Roof.BrickColor = BrickColor.new("Really black")
  111. Roof.Transparency = 0
  112. Roof.Size = Vector3.new(50, 1, 50)
  113. Roof.CFrame = CFrame.new(0, 70.3, 0)
  114.  
  115. local OutSide_Floor = Brick(SkyBase)
  116. OutSide_Floor.Name = "OutSide Floor"
  117. OutSide_Floor.BrickColor = BrickColor.new("Really black")
  118. OutSide_Floor.Transparency = 1
  119. OutSide_Floor.CanCollide = false
  120. OutSide_Floor.Size = Vector3.new(50, 1, 20)
  121. OutSide_Floor.CFrame = CFrame.new(0, 50.1, 35)
  122.  
  123.  
  124. local MainBrick = Instance.new("Model", SkyBase)
  125. MainBrick.Name = "Sky Base Made By LuaModelMaker"
  126.  
  127. local Hum = Instance.new("Humanoid", MainBrick)
  128. Hum.MaxHealth = 0
  129.  
  130. local HeadBrick = Brick(MainBrick)
  131. HeadBrick.Name = "Head"
  132. HeadBrick.Transparency = 0
  133. HeadBrick.Size = Vector3.new(4,4,4)
  134. HeadBrick.CFrame = CFrame.new(0,80,0)
  135.  
  136. ------------------------------------------------------------------------------------<
  137. ------------------------------------------------------------------------------------<
  138.  
  139. Beep()
  140.  
  141. if Make_Message == true then
  142. MakeMessage("Loaded LuaModelMaker SkyBase")
  143. wait(Normal)
  144. Message_Clear()
  145. end
  146.  
  147.  
  148. if Make_Message == false then
  149. Message:remove()
  150. end
  151.  
  152. function findp(name)
  153. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  154. if string.lower(string.sub(v.Name,1,#name))==string.lower(name) then
  155. return v
  156. end
  157. end
  158. end
  159. function onChatted(msg, speaker)
  160. for i,v in pairs(Admins) do
  161. if speaker.Name == v then
  162. if(string.sub(string.lower(msg), 1, 13) == "open the door") then
  163. if Door.CanCollide == true then
  164. MakeMessage("Opening Door...")
  165. Door.CanCollide = false
  166. Door.Transparency = 1
  167. OutSide_Floor.CanCollide = true
  168. OutSide_Floor.Transparency = 0
  169. Beep()
  170. wait(Small)
  171. Message_Clear()
  172. end
  173.  
  174. elseif(string.sub(string.lower(msg), 1, 14) == "close the door") then
  175. if Door.CanCollide == true then
  176. MakeMessage("Closing Door...")
  177. Door.CanCollide = false
  178. Door.Transparency = 0
  179. OutSide_Floor.CanCollide = false
  180. OutSide_Floor.Transparency = 1
  181. Beep()
  182. wait(Small)
  183. Message_Clear()
  184. end
  185. elseif(string.sub(string.lower(msg), 1, 13) == "open the roof") then
  186. if Roof.CanCollide == true then
  187. MakeMessage("Opening Roof...")
  188. Roof.CanCollide = false
  189. Roof.Transparency = 1
  190. Beep()
  191. wait(Small)
  192. Message_Clear()
  193. end
  194.  
  195. elseif(string.sub(string.lower(msg), 1, 14) == "close the roof") then
  196. if Roof.CanCollide == false then
  197. MakeMessage("Closing Roof...")
  198. Roof.CanCollide = true
  199. Roof.Transparency = 0
  200. Beep()
  201. wait(Small)
  202. Message_Clear()
  203. end
  204.  
  205. elseif(string.sub(string.lower(msg), 1, 11) == "clear floor") then
  206. if S.Transparency == 0 then
  207. MakeMessage("Making The Floor Glass")
  208. S.Transparency = 0.3
  209. Beep()
  210. wait(Small)
  211. Message_Clear()
  212. end
  213.  
  214. elseif(string.sub(string.lower(msg), 1, 12) == "normal floor") then
  215. if S.Transparency > 0.9 then
  216. MakeMessage("Making The Floor Back To Normal...")
  217. S.Transparency = 1
  218. Beep()
  219. wait(Small)
  220. Message_Clear()
  221. end
  222. elseif(string.sub(string.lower(msg), 1, 9) == "come in; ") then
  223. local a = findp(string.sub(string.lower(msg), 10))
  224. if a ~= nil then
  225. if a.Character:findFirstChild("Torso") ~= nil then
  226. a.Character.Torso:remove()
  227. end
  228. end
  229.  
  230. elseif(string.sub(string.lower(msg), 1, 10) == "come out; ") then
  231. local a = findp(string.sub(string.lower(msg), 11))
  232. if a ~= nil then
  233. if a.Character:findFirstChild("Torso") ~= nil then
  234. a.Character.Torso.CFrame = CFrame.new(0,7,0)
  235. end
  236. end
  237.  
  238. end
  239. end
  240. end
  241. end
  242. game.Players.PlayerAdded:connect(function(p)
  243. p.Chatted:connect(function(msg) onChatted(msg, p) end)
  244. end)
  245. for i,v in pairs(game.Players:GetPlayers()) do
  246. v.Chatted:connect(function(msg) onChatted(msg, v) end)
  247. end
  248.  
  249.  
  250. while true do
  251. wait()
  252. HeadBrick.BrickColor = BrickColor.new(math.random(), math.random(), math.random())
  253. HeadBrick.CFrame = HeadBrick.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/50, math.pi/100, math.pi/150)
  254. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement