SHOW:
|
|
- or go back to the newest paste.
| 1 | - | playername = "splatert2" -- change this to a player name thats wants a great C00l Name! |
| 1 | + | playername = "myles0626" -- change this to a player name thats wants a great C00l Name! |
| 2 | ------- | |
| 3 | Ngui = Instance.new("ScreenGui")
| |
| 4 | Ngui.Parent = game.Players:FindFirstChild(playername).PlayerGui | |
| 5 | inputtext = Instance.new("TextBox")
| |
| 6 | inputtext.Parent = Ngui | |
| 7 | inputtext.Size = UDim2.new(0, 200,0, 20) | |
| 8 | wait() | |
| 9 | inputtext.Position = UDim2.new(0, 325,0, 200) | |
| 10 | - | inputtext.Text = "Type a Name" |
| 10 | + | inputtext.Text = "Splitex" |
| 11 | inputtext.BorderSizePixel = 2 | |
| 12 | inputtext.BackgroundColor3 = Color3.new(135, 0, 0) | |
| 13 | inputtext.TextColor3 = Color3.new(255, 255, 255) | |
| 14 | inputtext.Name = "InputBox" | |
| 15 | wait() | |
| 16 | Subbutton = Instance.new("TextButton")
| |
| 17 | Subbutton.Parent = Ngui | |
| 18 | Subbutton.Position = UDim2.new(0, 325,0, 225) | |
| 19 | Subbutton.Size = UDim2.new(0, 100,0, 15) | |
| 20 | Subbutton.BackgroundColor3 = Color3.new(85, 170, 0) | |
| 21 | Subbutton.TextColor3 = Color3.new(0,0,0) | |
| 22 | Subbutton.Text = "Enter" | |
| 23 | Subbutton.Name = "EnterButton" | |
| 24 | wait() | |
| 25 | cancbutton = Instance.new("TextButton")
| |
| 26 | cancbutton.Parent = Ngui | |
| 27 | cancbutton.Position = UDim2.new(0, 430,0, 225) | |
| 28 | cancbutton.Size = UDim2.new(0, 95,0, 15) | |
| 29 | cancbutton.BackgroundColor3 = Color3.new(85, 0, 0) | |
| 30 | cancbutton.TextColor3 = Color3.new(255, 255, 255) | |
| 31 | cancbutton.Name = "CancelButton" | |
| 32 | cancbutton.Text = "Cancel" | |
| 33 | ||
| 34 | function Submit() | |
| 35 | local PlayernGui = Instance.new("BillboardGui")
| |
| 36 | PlayernGui.Parent = game.Players:FindFirstChild(playername).Character.Head | |
| 37 | PlayernGui.Adornee = game.Players:FindFirstChild(playername).Character.Head | |
| 38 | PlayernGui.Size = UDim2.new(0, 200,0, 50) | |
| 39 | PlayernGui.AlwaysOnTop = true | |
| 40 | wait() | |
| 41 | local C00llabel = Instance.new("TextLabel")
| |
| 42 | C00llabel.Parent = PlayernGui | |
| 43 | C00llabel.Size = UDim2.new(0, 200,0, 50) | |
| 44 | C00llabel.FontSize = "Size42" | |
| 45 | C00llabel.BackgroundTransparency = 1 | |
| 46 | C00llabel.TextColor3 = Color3.new(255, 0, 0) | |
| 47 | C00llabel.TextStrokeTransparency = 0 | |
| 48 | C00llabel.Text = inputtext.Text | |
| 49 | C00llabel.Position = UDim2.new(0, 0,0, -45) | |
| 50 | wait() | |
| 51 | Ngui:remove() -- ends the gui after recieving the text of c00lness! | |
| 52 | end | |
| 53 | ||
| 54 | function cancel() | |
| 55 | Ngui:remove() | |
| 56 | end | |
| 57 | ||
| 58 | Subbutton.MouseButton1Click:connect(Submit) | |
| 59 | cancbutton.MouseButton1Click:connect(cancel) |