
34 Views
3 Executions
Global chat (websocket)
Universal Script π
3 days ago Β· Updated
Reviewed by MatttsPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Chat with any person in any place,like an global chat
-- Chat personalizado via WebSocket (Delta)
-- Troque a URL abaixo pela do seu servidor (veja servidor.js)
local URL = "wss://chat-ws-r8a6.onrender.com"
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local UIS = game:GetService("UserInputService")
local lp = Players.LocalPlayer
local parent = (gethui and gethui()) or game:GetService("CoreGui")
-- Remove chat antigo se executar de novo
if parent:FindFirstChild("WSChat") then parent.WSChat:Destroy() end
-- ========== INTERFACE ==========
local gui = Instance.new("ScreenGui")
gui.Name = "WSChat"
gui.ResetOnSpawn = false
gui.Parent = parent
local main = Instance.new("Frame")
main.Size = UDim2.new(0, 300, 0, 230)
main.Position = UDim2.new(0, 20, 0.5, -115)
main.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
main.BorderSizePixel = 0
main.Parent = gui
Instance.new("UICorner", main).CornerRadius = UDim.new(0, 8)
local top = Instance.new("TextLabel")
top.Size = UDim2.new(1, 0, 0, 28)
top.BackgroundColor3 = Color3.fromRGB(45, 45, 60)
top.BorderSizePixel = 0
top.Text = " Chat WS (arraste aqui)"
top.TextColor3 = Color3.new(1, 1, 1)
top.TextXAlignment = Enum.TextXAlignment.Left
top.Font = Enum.Font.GothamBold
top.TextSize = 14
top.Parent = main
Instance.new("UICorner", top).CornerRadius = UDim.new(0, 8)
local hide = Instance.new("TextButton")
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!




