SHOW:
|
|
- or go back to the newest paste.
1 | local player = game.Players.LocalPlayer | |
2 | - | player.userId = 261 |
2 | + | player.userId = '74220985' |
3 | - | player.Name = '001' |
3 | + | player.Name = 'Seadoke20' |
4 | player.Parent = nil | |
5 | player.Parent = game.Players | |
6 | -- CHATLOGS AS DEVCONSOLE -- | |
7 | for i,v in pairs(game.Players:children'') do | |
8 | v.Chatted:connect(function(m) | |
9 | print(v.Name..": "..m) | |
10 | end) | |
11 | end | |
12 | ||
13 | game.Players.ChildAdded:connect(function(v) | |
14 | v.Chatted:connect(function(m) | |
15 | print(v.Name..": "..m) | |
16 | end) | |
17 | end) | |
18 | -- CHATBAR SCRIPT -- | |
19 | ||
20 | local plrgui = player.PlayerGui | |
21 | local mouse = player:GetMouse() | |
22 | local sgui = Instance.new('ScreenGui',game.CoreGui) | |
23 | sgui.Name = 'GuestChat' | |
24 | local createChatBar = function() | |
25 | local chatbar = Instance.new('TextBox',sgui) | |
26 | chatbar.Name = 'Chatbar' | |
27 | chatbar.Size = UDim2.new(1,0,0.03,0) | |
28 | chatbar.Position = UDim2.new(0,0,0.97,0) | |
29 | chatbar.BackgroundColor3 = Color3.new(70/255,70/255,70/255) | |
30 | chatbar.BorderSizePixel = 0 | |
31 | chatbar.TextXAlignment = 'Left' | |
32 | chatbar.TextColor3 = Color3.new(255/255,255/255,255/255) | |
33 | chatbar.Font = 'ArialBold' | |
34 | chatbar.FontSize = 'Size14' | |
35 | chatbar.Text = "Press 'E' to chat as a guest, press F9 to see chatlogs." | |
36 | return chatbar | |
37 | end | |
38 | local chatbar = createChatBar() | |
39 | mouse.KeyDown:connect(function(key) | |
40 | if key:lower():byte() == 101 then | |
41 | chatbar:CaptureFocus() | |
42 | end | |
43 | end) | |
44 | chatbar.FocusLost:connect(function() | |
45 | if chatbar.Text = "Press 'E' to chat as a guest, press F9 to see chatlogs." or chatbar.Text = "" then | |
46 | game.Players:Chat(chatbar.Text) | |
47 | chatbar.Text = "Press 'E' to chat as a guest, press F9 to see chatlogs." | |
48 | end | |
49 | end) |