Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- KingOS Installer
- ]]--
- local objs = {["container"]=nil,["textOutput"]=nil,["inputBar"]=nil,["fs"]=nil}
- local OSURL = ""
- --Create the working system
- local root = script.Parent.Parent
- if (root:FindFirstChild("fs")==nil) then --if the FS folder doesn't exist, create it.
- local fs = Instance.new("Folder")
- fs.Name = "fs"
- fs.Parent = root
- end
- if (root:FindFirstChild("kernals")==nil) then
- local ks = Instance.new("Folder")
- ks.Name = "kernals"
- ks.Parent = root
- end
- --Create the interface
- local display = script.Parent.Parent.Frame.screen
- display:ClearAllChildren()
- local element
- element = objs["container"]
- element = Instance.new("Frame")
- element.Parent = display
- element.Size = UDim2.new(1,0,1,0)
- element.BackgroundColor = BrickColor.new(0,0,0)
- objs["container"] = element
- element = objs["textOutput"]
- element = Instance.new("TextLabel")
- element.Parent = display.Frame
- element.Size = UDim2.new(1,0,0.2,0)
- element.BackgroundTransparency = 1
- element.Text = "> Loaded"
- element.TextColor3 = Color3.new(0,255,0)
- objs["textOutput"] = element
- element = objs["inputBar"]
- element = Instance.new("TextBox")
- element.Parent = display.Frame
- element.Size = UDim2.new(1,0,0.1,0)
- element.Position = UDim2.new(0,0,0.9,0)
- element.BackgroundTransparency = 0
- element.Text = ""
- element.TextColor3 = Color3.new(0,255,0)
- objs["inputBar"] = element
- objs["inputBar"].FocusLost:connect(pcmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement