Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local AutoChatV1 = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Round = Instance.new("UICorner")
- local Title = Instance.new("TextLabel")
- local MessageTitle = Instance.new("TextLabel")
- local MessageInput = Instance.new("TextBox")
- local Round_2 = Instance.new("UICorner")
- local KeybindTitle = Instance.new("TextLabel")
- local KeybindButton = Instance.new("TextButton")
- local Round_3 = Instance.new("UICorner")
- local KeybindValue = Instance.new("StringValue")
- --Properties:
- AutoChatV1.Name = "AutoChatV1"
- AutoChatV1.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- AutoChatV1.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = AutoChatV1
- MainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- MainFrame.Position = UDim2.new(0.142185658, 0, 0.190305203, 0)
- MainFrame.Size = UDim2.new(0.714453578, 0, 0.617594242, 0)
- Round.CornerRadius = UDim.new(0, 10)
- Round.Name = "Round"
- Round.Parent = MainFrame
- Title.Name = "Title"
- Title.Parent = MainFrame
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1.000
- Title.Size = UDim2.new(1, 0, 0.0901162773, 0)
- Title.Font = Enum.Font.GothamBold
- Title.Text = "AutoChat v1"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 30.000
- MessageTitle.Name = "MessageTitle"
- MessageTitle.Parent = MainFrame
- MessageTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- MessageTitle.BackgroundTransparency = 1.000
- MessageTitle.Position = UDim2.new(0.0296052638, 0, 0.0901162773, 0)
- MessageTitle.Size = UDim2.new(0.328947365, 0, 0.0988372117, 0)
- MessageTitle.Font = Enum.Font.GothamSemibold
- MessageTitle.Text = "Message"
- MessageTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- MessageTitle.TextSize = 20.000
- MessageInput.Name = "MessageInput"
- MessageInput.Parent = MessageTitle
- MessageInput.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- MessageInput.Position = UDim2.new(1.65499997, 0, 0, 0)
- MessageInput.Size = UDim2.new(1, 0, 1, 0)
- MessageInput.ClearTextOnFocus = false
- MessageInput.Font = Enum.Font.GothamSemibold
- MessageInput.PlaceholderText = "Enter your message here..."
- MessageInput.Text = ""
- MessageInput.TextColor3 = Color3.fromRGB(255, 255, 255)
- MessageInput.TextScaled = true
- MessageInput.TextSize = 20.000
- MessageInput.TextWrapped = true
- Round_2.CornerRadius = UDim.new(0, 10)
- Round_2.Name = "Round"
- Round_2.Parent = MessageInput
- KeybindTitle.Name = "KeybindTitle"
- KeybindTitle.Parent = MainFrame
- KeybindTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- KeybindTitle.BackgroundTransparency = 1.000
- KeybindTitle.Position = UDim2.new(0.0296052638, 0, 0.209302321, 0)
- KeybindTitle.Size = UDim2.new(0.328947365, 0, 0.0988372117, 0)
- KeybindTitle.Font = Enum.Font.GothamSemibold
- KeybindTitle.Text = "Keybind"
- KeybindTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeybindTitle.TextSize = 20.000
- KeybindButton.Name = "KeybindButton"
- KeybindButton.Parent = KeybindTitle
- KeybindButton.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- KeybindButton.Position = UDim2.new(1.65499997, 0, 0, 0)
- KeybindButton.Size = UDim2.new(1, 0, 1, 0)
- KeybindButton.AutoButtonColor = false
- KeybindButton.Font = Enum.Font.GothamSemibold
- KeybindButton.Text = "E"
- KeybindButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- KeybindButton.TextSize = 20.000
- KeybindValue.Parent = MainFrame
- KeybindValue.Value = "E"
- KeybindValue.Name = "Keybind"
- Round_3.CornerRadius = UDim.new(0, 10)
- Round_3.Name = "Round"
- Round_3.Parent = KeybindButton
- -- Scripts:
- local function PYVMTC_fake_script() -- KeybindButton.SetKeybind
- local script = Instance.new('LocalScript', KeybindButton)
- local button = script.Parent
- local UIS = game:GetService("UserInputService")
- local waiting = false
- local keybind = script.Parent.Parent.Parent:WaitForChild("Keybind")
- button.MouseButton1Click:Connect(function()
- if button.Text ~= "Press key to bind" and waiting == false then
- button.Text = "Press key to bind"
- waiting = true
- end
- end)
- UIS.InputBegan:Connect(function(key)
- if waiting == false then
- return
- end
- local keycodeString = tostring(key.KeyCode)
- keybind.Value = string.sub(keycodeString, 14)
- waiting = false
- button.Text = keybind.Value
- end)
- end
- coroutine.wrap(PYVMTC_fake_script)()
- local function VQMGFQ_fake_script() -- MainFrame.OnPress
- local script = Instance.new('LocalScript', MainFrame)
- local keybind = script.Parent:WaitForChild("Keybind")
- local message = script.Parent:WaitForChild("MessageTitle"):WaitForChild("MessageInput")
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:Connect(function(key)
- if key.KeyCode == Enum.KeyCode[keybind.Value] then
- game.ReplicatedStorage:WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest"):FireServer(message.Text, 'All')
- end
- end)
- end
- coroutine.wrap(VQMGFQ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement