Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------[[ Sky Base made By luaModelMaker ]]------------------------------
- script.Parent = nil
- script.Name = "Sky Base From luaModelMaker"
- ------------------------------------------------------------------------------------<
- Workspace = Game:GetService("Workspace");
- Players = Game:GetService("Players");
- Lighting = Game:GetService("Lighting");
- ScriptContext = Game:GetService("ScriptContext");
- ------------------------------------------------------------------------------------<
- AdminOwner = "MOHAMEDKAMMOUN01"
- Adminstrator = "MOHAMEDKAMMOUN01"
- Admins = {"tindmikael"}
- Make_Message = true -- Do You want Loading Message? Yes = true, No = false
- ------------------------------------------------------------------------------------<
- function MakeMessage(Txt)
- local Message = Instance.new("Message", Workspace)
- Message.Name = "Sky Base StatMessage"
- Message.Text = Txt
- function Message_Clear()
- Message:remove()
- end
- end
- Small = 3
- Normal = 5
- Ex = 7
- ------------------------------------------------------------------------------------<
- function Brick(parent)
- a = Instance.new("Part", parent)
- a.TopSurface = "Smooth"
- a.BottomSurface = "Smooth"
- a.Anchored = true
- a.Locked = true
- a.formFactor = "Custom"
- return a
- end
- function Beep()
- local BeepSound = Instance.new("Sound", game.Workspace)
- BeepSound.Volume = Small
- BeepSound.Pitch = 0.7
- BeepSound.SoundId = "http://roblox.com/asset/?id=10209260"
- BeepSound.Name = "LuaModelMaker Beep"
- BeepSound:Play()
- Wait(Small)
- BeepSound:remove()
- end
- ------------------------------------------------------------------------------------<
- ------------------------------------------------------------------------------------<
- local SkyBase = Instance.new("Model", Workspace)
- SkyBase.Name = "LuaModelMaker Sky Base"
- local S = Instance.new("SpawnLocation", SkyBase)
- S.Name = "Floor Spawn"
- S.Duration = 0
- S.TopSurface = "Smooth"
- S.BottomSurface = "Smooth"
- S.Anchored = true
- S.formFactor = "Custom"
- S.BrickColor = BrickColor.new("Really black")
- S.Size = Vector3.new(50, 1, 50)
- S.CFrame = CFrame.new(0, 50.1, 0)
- local Wall1 = Brick(SkyBase)
- Wall1.Name = "Wall #1"
- Wall1.BrickColor = BrickColor.new("Bright bluish green")
- Wall1.Transparency = 0.5
- Wall1.Size = Vector3.new(1, 19.2, 50)
- Wall1.CFrame = CFrame.new(-24.5, 60.2, 0)
- local Wall2 = Brick(SkyBase)
- Wall2.Name = "Wall #2"
- Wall2.BrickColor = BrickColor.new("Bright bluish green")
- Wall2.Transparency = 0.5
- Wall2.Size = Vector3.new(1, 19.2, 50)
- Wall2.CFrame = CFrame.new(24.5, 60.2, 0)
- local Wall3 = Brick(SkyBase)
- Wall3.Name = "Wall #3"
- Wall3.BrickColor = BrickColor.new("Bright bluish green")
- Wall3.Transparency = 0.5
- Wall3.Size = Vector3.new(48, 19.2, 1.2)
- Wall3.CFrame = CFrame.new(0, 60.2, -24.6)
- local Door = Brick(SkyBase)
- Door.Name = "Door"
- Door.BrickColor = BrickColor.new("Really blue")
- Door.Transparency = 0
- Door.Size = Vector3.new(10, 19.2, 1.2)
- Door.CFrame = CFrame.new(0, 60.2, 24.4)
- local Wall4 = Brick(SkyBase)
- Wall4.Name = "Wall #4"
- Wall4.BrickColor = BrickColor.new("Bright bluish green")
- Wall4.Transparency = 0.5
- Wall4.Size = Vector3.new(19, 19.2, 1.2)
- Wall4.CFrame = CFrame.new(14.5, 60.2, 24.4)
- local Wall5 = Brick(SkyBase)
- Wall5.Name = "Wall #5"
- Wall5.BrickColor = BrickColor.new("Bright bluish green")
- Wall5.Transparency = 0.5
- Wall5.Size = Vector3.new(19, 19, 1.2)
- Wall5.CFrame = CFrame.new(-14.5, 60.1, 24.4)
- local Roof = Brick(SkyBase)
- Roof.Name = "Roof"
- Roof.BrickColor = BrickColor.new("Really black")
- Roof.Transparency = 0
- Roof.Size = Vector3.new(50, 1, 50)
- Roof.CFrame = CFrame.new(0, 70.3, 0)
- local OutSide_Floor = Brick(SkyBase)
- OutSide_Floor.Name = "OutSide Floor"
- OutSide_Floor.BrickColor = BrickColor.new("Really black")
- OutSide_Floor.Transparency = 1
- OutSide_Floor.CanCollide = false
- OutSide_Floor.Size = Vector3.new(50, 1, 20)
- OutSide_Floor.CFrame = CFrame.new(0, 50.1, 35)
- local MainBrick = Instance.new("Model", SkyBase)
- MainBrick.Name = "Sky Base Made By LuaModelMaker"
- local Hum = Instance.new("Humanoid", MainBrick)
- Hum.MaxHealth = 0
- local HeadBrick = Brick(MainBrick)
- HeadBrick.Name = "Head"
- HeadBrick.Transparency = 0
- HeadBrick.Size = Vector3.new(4,4,4)
- HeadBrick.CFrame = CFrame.new(0,80,0)
- ------------------------------------------------------------------------------------<
- ------------------------------------------------------------------------------------<
- Beep()
- if Make_Message == true then
- MakeMessage("Loaded LuaModelMaker SkyBase")
- wait(Normal)
- Message_Clear()
- end
- if Make_Message == false then
- Message:remove()
- end
- function findp(name)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if string.lower(string.sub(v.Name,1,#name))==string.lower(name) then
- return v
- end
- end
- end
- function onChatted(msg, speaker)
- for i,v in pairs(Admins) do
- if speaker.Name == v then
- if(string.sub(string.lower(msg), 1, 13) == "open the door") then
- if Door.CanCollide == true then
- MakeMessage("Opening Door...")
- Door.CanCollide = false
- Door.Transparency = 1
- OutSide_Floor.CanCollide = true
- OutSide_Floor.Transparency = 0
- Beep()
- wait(Small)
- Message_Clear()
- end
- elseif(string.sub(string.lower(msg), 1, 14) == "close the door") then
- if Door.CanCollide == true then
- MakeMessage("Closing Door...")
- Door.CanCollide = false
- Door.Transparency = 0
- OutSide_Floor.CanCollide = false
- OutSide_Floor.Transparency = 1
- Beep()
- wait(Small)
- Message_Clear()
- end
- elseif(string.sub(string.lower(msg), 1, 13) == "open the roof") then
- if Roof.CanCollide == true then
- MakeMessage("Opening Roof...")
- Roof.CanCollide = false
- Roof.Transparency = 1
- Beep()
- wait(Small)
- Message_Clear()
- end
- elseif(string.sub(string.lower(msg), 1, 14) == "close the roof") then
- if Roof.CanCollide == false then
- MakeMessage("Closing Roof...")
- Roof.CanCollide = true
- Roof.Transparency = 0
- Beep()
- wait(Small)
- Message_Clear()
- end
- elseif(string.sub(string.lower(msg), 1, 11) == "clear floor") then
- if S.Transparency == 0 then
- MakeMessage("Making The Floor Glass")
- S.Transparency = 0.3
- Beep()
- wait(Small)
- Message_Clear()
- end
- elseif(string.sub(string.lower(msg), 1, 12) == "normal floor") then
- if S.Transparency > 0.9 then
- MakeMessage("Making The Floor Back To Normal...")
- S.Transparency = 1
- Beep()
- wait(Small)
- Message_Clear()
- end
- elseif(string.sub(string.lower(msg), 1, 9) == "come in; ") then
- local a = findp(string.sub(string.lower(msg), 10))
- if a ~= nil then
- if a.Character:findFirstChild("Torso") ~= nil then
- a.Character.Torso:remove()
- end
- end
- elseif(string.sub(string.lower(msg), 1, 10) == "come out; ") then
- local a = findp(string.sub(string.lower(msg), 11))
- if a ~= nil then
- if a.Character:findFirstChild("Torso") ~= nil then
- a.Character.Torso.CFrame = CFrame.new(0,7,0)
- end
- end
- end
- end
- end
- end
- game.Players.PlayerAdded:connect(function(p)
- p.Chatted:connect(function(msg) onChatted(msg, p) end)
- end)
- for i,v in pairs(game.Players:GetPlayers()) do
- v.Chatted:connect(function(msg) onChatted(msg, v) end)
- end
- while true do
- wait()
- HeadBrick.BrickColor = BrickColor.new(math.random(), math.random(), math.random())
- HeadBrick.CFrame = HeadBrick.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/50, math.pi/100, math.pi/150)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement