Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playername = "myles0626" -- change this to a player name thats wants a great C00l Name!
- -------
- Ngui = Instance.new("ScreenGui")
- Ngui.Parent = game.Players:FindFirstChild(playername).PlayerGui
- inputtext = Instance.new("TextBox")
- inputtext.Parent = Ngui
- inputtext.Size = UDim2.new(0, 200,0, 20)
- wait()
- inputtext.Position = UDim2.new(0, 325,0, 200)
- inputtext.Text = "Splitex"
- inputtext.BorderSizePixel = 2
- inputtext.BackgroundColor3 = Color3.new(135, 0, 0)
- inputtext.TextColor3 = Color3.new(255, 255, 255)
- inputtext.Name = "InputBox"
- wait()
- Subbutton = Instance.new("TextButton")
- Subbutton.Parent = Ngui
- Subbutton.Position = UDim2.new(0, 325,0, 225)
- Subbutton.Size = UDim2.new(0, 100,0, 15)
- Subbutton.BackgroundColor3 = Color3.new(85, 170, 0)
- Subbutton.TextColor3 = Color3.new(0,0,0)
- Subbutton.Text = "Enter"
- Subbutton.Name = "EnterButton"
- wait()
- cancbutton = Instance.new("TextButton")
- cancbutton.Parent = Ngui
- cancbutton.Position = UDim2.new(0, 430,0, 225)
- cancbutton.Size = UDim2.new(0, 95,0, 15)
- cancbutton.BackgroundColor3 = Color3.new(85, 0, 0)
- cancbutton.TextColor3 = Color3.new(255, 255, 255)
- cancbutton.Name = "CancelButton"
- cancbutton.Text = "Cancel"
- function Submit()
- local PlayernGui = Instance.new("BillboardGui")
- PlayernGui.Parent = game.Players:FindFirstChild(playername).Character.Head
- PlayernGui.Adornee = game.Players:FindFirstChild(playername).Character.Head
- PlayernGui.Size = UDim2.new(0, 200,0, 50)
- PlayernGui.AlwaysOnTop = true
- wait()
- local C00llabel = Instance.new("TextLabel")
- C00llabel.Parent = PlayernGui
- C00llabel.Size = UDim2.new(0, 200,0, 50)
- C00llabel.FontSize = "Size42"
- C00llabel.BackgroundTransparency = 1
- C00llabel.TextColor3 = Color3.new(255, 0, 0)
- C00llabel.TextStrokeTransparency = 0
- C00llabel.Text = inputtext.Text
- C00llabel.Position = UDim2.new(0, 0,0, -45)
- wait()
- Ngui:remove() -- ends the gui after recieving the text of c00lness!
- end
- function cancel()
- Ngui:remove()
- end
- Subbutton.MouseButton1Click:connect(Submit)
- cancbutton.MouseButton1Click:connect(cancel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement