View difference between Paste ID: eg08s46k and pJT1i5fL
SHOW: | | - or go back to the newest paste.
1
-- Objects
2
3
local ChatingGui = Instance.new("ScreenGui")
4
local ChatFrame = Instance.new("Frame")
5
local ChatBox = Instance.new("TextBox")
6
local ConfirmButton = Instance.new("TextButton")
7
8
-- Properties
9
10
ChatingGui.Name = "ChatingGui"
11
ChatingGui.Parent = game.Players.LocalPlayer.PlayerGui
12
13
ChatFrame.Name = "ChatFrame"
14
ChatFrame.Parent = ChatingGui
15
ChatFrame.Active = true
16
ChatFrame.BackgroundColor3 = Color3.new(0.0901961, 0.14902, 1)
17
ChatFrame.BackgroundTransparency = 0.20000000298023
18
ChatFrame.BorderSizePixel = 3
19
ChatFrame.Draggable = true
20
ChatFrame.Position = UDim2.new(0.704775691, 0, 0.604347825, 0)
21
ChatFrame.Size = UDim2.new(0.285817653, 0, 0.284057975, 0)
22
23
ChatBox.Name = "ChatBox"
24
ChatBox.Parent = ChatFrame
25
ChatBox.BackgroundColor3 = Color3.new(0.0901961, 0.14902, 1)
26
ChatBox.BackgroundTransparency = 0.30000001192093
27
ChatBox.BorderSizePixel = 3
28
ChatBox.Position = UDim2.new(0, 0, 0.200000003, 0)
29
ChatBox.Size = UDim2.new(1, 0, 0.550000012, 0)
30
ChatBox.Font = Enum.Font.SourceSans
31
ChatBox.FontSize = Enum.FontSize.Size14
32
ChatBox.Text = "Type something here to chat it anonymously!"
33
ChatBox.TextScaled = true
34
ChatBox.TextSize = 14
35
ChatBox.TextWrapped = true
36
37
ConfirmButton.Name = "ConfirmButton"
38
ConfirmButton.Parent = ChatFrame
39
ConfirmButton.BackgroundColor3 = Color3.new(0, 0.666667, 0)
40
ConfirmButton.BackgroundTransparency = 0.30000001192093
41
ConfirmButton.Position = UDim2.new(0, 0, 0.75, 0)
42
ConfirmButton.Selectable = false
43
ConfirmButton.Size = UDim2.new(1, 0, 0, 50)
44
ConfirmButton.Font = Enum.Font.SourceSansSemibold
45
ConfirmButton.FontSize = Enum.FontSize.Size14
46
ConfirmButton.Text = "Chat!"
47
ConfirmButton.TextScaled = true
48
ConfirmButton.TextSize = 14
49
ConfirmButton.TextWrapped = true
50
51
ConfirmButton.MouseButton1Click:connect(function()
52
if ChatBox.Text ~= "Type something here to chat it anonymously!" then
53
if ChatBox.Text ~= "" then
54
game.Chat:Chat(game.Players.LocalPlayer.Character.Head, ChatBox.Text, "White")
55
end 
56
end
57
end)