Advertisement
coderboy

rIOS_V1

Jul 4th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.38 KB | None | 0 0
  1. --[[
  2. KingOS Installer
  3. ]]--
  4. local objs = {["container"]=nil,["textOutput"]=nil,["inputBar"]=nil,["fs"]=nil}
  5. local OSURL = ""
  6.  
  7. --Create the working system
  8. local root = script.Parent.Parent
  9. if (root:FindFirstChild("fs")==nil) then --if the FS folder doesn't exist, create it.
  10.     local fs = Instance.new("Folder")
  11.     fs.Name = "fs"
  12.     fs.Parent = root
  13. end
  14. if (root:FindFirstChild("kernals")==nil) then
  15.     local ks = Instance.new("Folder")
  16.     ks.Name = "kernals"
  17.     ks.Parent = root
  18. end
  19. --Create the interface
  20. local display = script.Parent.Parent.Frame.screen
  21. display:ClearAllChildren()
  22. local element
  23. element = objs["container"]
  24. element = Instance.new("Frame")
  25. element.Parent = display
  26. element.Size = UDim2.new(1,0,1,0)
  27. element.BackgroundColor = BrickColor.new(0,0,0)
  28. objs["container"] = element
  29. element = objs["textOutput"]
  30. element = Instance.new("TextLabel")
  31. element.Parent = display.Frame
  32. element.Size = UDim2.new(1,0,0.2,0)
  33. element.BackgroundTransparency = 1
  34. element.Text = "> Loaded"
  35. element.TextColor3 = Color3.new(0,255,0)
  36. objs["textOutput"] = element
  37. element = objs["inputBar"]
  38. element = Instance.new("TextBox")
  39. element.Parent = display.Frame
  40. element.Size = UDim2.new(1,0,0.1,0)
  41. element.Position = UDim2.new(0,0,0.9,0)
  42. element.BackgroundTransparency = 0
  43. element.Text = ""
  44. element.TextColor3 = Color3.new(0,255,0)
  45. objs["inputBar"] = element
  46. objs["inputBar"].FocusLost:connect(pcmd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement