Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || TYPING BUBBLE (GETS THE CHAT BAR)
- ]]
- local Player = game.Players.LocalPlayer
- local UserInputService = game:GetService("UserInputService")
- UserInputService.TextBoxFocused:Connect(function(TextBox)
- if TextBox.Name == "ChatBar" then
- game.ReplicatedStorage.ToggleTypingBubble:FireServer(true)
- end
- end)
- UserInputService.TextBoxFocusReleased:Connect(function(TextBox)
- if TextBox.Name == "ChatBar" then
- game.ReplicatedStorage.ToggleTypingBubble:FireServer(false)
- end
- end)
- --[[
- || 📜 AUTHOR: @4zx16 || TYPING BUBBLE (CLONES/TRIGGERS THE TYPING BUBBLE)
- ]]
- game.Players.PlayerAdded:Connect(function(Player)
- Player.CharacterAdded:Connect(function(Character)
- local TypingBubble = script.TypingBubble:Clone()
- TypingBubble.Parent = Character.Head
- end)
- end)
- game.ReplicatedStorage.ToggleTypingBubble.OnServerEvent:Connect(function(Player, Toggle)
- Player.Character.Head.TypingBubble.Enabled = Toggle
- end)
Advertisement
Add Comment
Please, Sign In to add comment