Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.Players.LocalPlayer.PlayerGui:FindFirstChild("hah") then
- game.Players.LocalPlayer.PlayerGui.hah:Destroy()
- end
- local NameGui = Instance.new("ScreenGui")
- local Name = Instance.new("Frame")
- local idk = Instance.new("TextBox")
- local dsa = Instance.new("TextButton")
- local ChatService = game:GetService("Chat")
- NameGui.Name = "hah"
- NameGui.Parent = game.Players.LocalPlayer.PlayerGui
- Name.Name = "haah"
- Name.Parent = NameGui
- Name.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
- Name.BorderColor3 = Color3.new(0, 0, 0)
- Name.Position = UDim2.new(0, 0, 0, 0)
- Name.Size = UDim2.new(0.3, 0, 0.05, 0)
- idk.Name = "idk"
- idk.Parent = Name
- idk.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
- idk.BorderColor3 = Color3.new(0, 0, 0)
- idk.Size = UDim2.new(1, 0, 1, 0)
- idk.Font = Enum.Font.SciFi
- idk.FontSize = Enum.FontSize.Size14
- idk.Text = "' to chat"
- idk.TextColor3 = Color3.new(1, 1, 1)
- idk.TextScaled = true
- idk.TextStrokeTransparency = 0
- idk.TextWrapped = true
- idk.FocusLost:connect(function(enterPressed)
- if string.len(idk.Text) ~= 0 then
- ChatService:Chat(game.Players.LocalPlayer.Character.Head, idk.Text, "Red")
- end
- idk.Text = "' to chat"
- idk:ReleaseFocus()
- end)
- local Mouse = game.Players.LocalPlayer:GetMouse()
- Mouse.KeyDown:connect(function(Key)
- if Key:lower() == "'" then
- idk:CaptureFocus()
- end
- end)
Add Comment
Please, Sign In to add comment