Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Enter player name here so we know which player to load it into
- player = game.Players.Zzzip42Strike
- --Master Container : Remember to parent it to load the gui.
- scrLoader = Instance.New("ScreenGui")
- scrLoader.Name = "ScriptLoader"
- --Heres a frame container
- fraContainer = Instance.New("Frame", scrLoader)
- fraContainer.Name = "LoaderFrame"
- --Not Complete fill in size/pos later
- fraContainer.Size = UDim2.New(0.6, 0, 0.3, 0)
- fraContainer.Position = UDim2.New(0.5,0,0.75,0)
- --Heres the Textbox which we will load our scripts in.
- txtInput = Instance.New("Textbox", fraContainer)
- txtInput.Name = "ScriptInput"
- txtInput.Text = "Input Script Here"
- --Remember to fill in Position and Size!
- txtInput.Position = UDim2.New(0,0,0.5,0)
- txtInput.Size = UDim2.New(0.75,0,0.25,0)
- --Heres a button to load the script
- btnLoad = Instance.New("TextButton", fraContainter)
- btnLoad.Name = "ScriptLoader"
- --Remember to fill in buttons position and size.
- btnLoad.Size = UDim2.New(0.25,0,0.25,0)
- btnLoad.Position = UDim2.New(0.75,0,0.5,0)
- --Actual Load Code
- function LoadTheCode()
- local c = txtInput.Text
- loadString(c)()
- end
- --Connection
- btnLoad.MouseButton1Down:connect(LoadTheCode)
- --Activation
- scrLoader.Parent = player.PlayerGui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement