Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local DragFrame = Instance.new("Frame")
- local Frame = Instance.new("Frame")
- local Frame_03 = Instance.new("Frame")
- local Say = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local OpenCloseButton = Instance.new("TextButton")
- ScreenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- DragFrame.Name = "DragFrame"
- DragFrame.Parent = ScreenGui
- DragFrame.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
- DragFrame.BorderSizePixel = 0
- DragFrame.Position = UDim2.new(0.21339564, 0, 0.0282555241, 0)
- DragFrame.Size = UDim2.new(0, 236, 0, 15)
- Frame.Parent = DragFrame
- Frame.BackgroundColor3 = Color3.new(0.172549, 0.482353, 0.721569)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0, 0, 0.956674814, 0)
- Frame.Size = UDim2.new(0, 236, 0, 7)
- Frame_03.Name = "Frame_03"
- Frame_03.Parent = DragFrame
- Frame_03.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
- Frame_03.BorderSizePixel = 0
- Frame_03.Position = UDim2.new(-0.000158406925, 0, 1.38826621, 0)
- Frame_03.Size = UDim2.new(0, 236, 0, 60)
- Say.Name = "Say"
- Say.Parent = Frame_03
- Say.BackgroundColor3 = Color3.new(1, 1, 1)
- Say.BackgroundTransparency = 1
- Say.Position = UDim2.new(0.618644059, 0, 0.371596336, 0)
- Say.Size = UDim2.new(0, 79, 0, 15)
- Say.Font = Enum.Font.SourceSans
- Say.Text = "Say"
- Say.TextColor3 = Color3.new(1, 1, 1)
- Say.TextSize = 14
- TextBox.Parent = Frame_03
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0.0381355919, 0, 0.0833333358, 0)
- TextBox.Size = UDim2.new(0, 150, 0, 50)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.Text = "Text Here"
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextSize = 14
- OpenCloseButton.Name = "OpenCloseButton"
- OpenCloseButton.Parent = DragFrame
- OpenCloseButton.BackgroundColor3 = Color3.new(1, 1, 1)
- OpenCloseButton.BackgroundTransparency = 1
- OpenCloseButton.Position = UDim2.new(0.822033882, 0, -0.066666536, 0)
- OpenCloseButton.Size = UDim2.new(0, 42, 0, 15)
- OpenCloseButton.Font = Enum.Font.SourceSans
- OpenCloseButton.Text = "-"
- OpenCloseButton.TextColor3 = Color3.new(1, 1, 1)
- OpenCloseButton.TextSize = 14
- OpenCloseButton.MouseButton1Click:Conect(function()
- if Frame_03.Visible = false then
- Frame_03.Visible = true
- else
- Frame_03.Visible false
- end)
- DragFrame.Active = true
- DragFrame.Draggable = true
- Say.MouseButton1Down:Connect(function()
- Plr = game:service("Players").LocalPlayer
- game:service("Chat"):Chat(Plr.Character.Head, TextBox.Text, Enum.ChatColor.Green)
- Plr.Chatted:connect(function(Msg)
- game:service("Chat"):Chat(Plr.Character.Head, Msg, Enum.ChatColor.Blue)
- end)
- end)
Add Comment
Please, Sign In to add comment