
751 Views
1.1k Executions
Popbox v2
Universal Script 📌
Happykid10K executions
8 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
E nessesario entra em uma sala recomendando entra em https://roblox-sync-zone.base44.app copiar o id da sala (temos uma sala de exemplo na versão demo não a nesecidade de edição) O script não foi testado caso tenha erros fique tranquilo o erro ou coisa mal feito será removido O script que você está a ver sincroniza clientes no msm jogo e servidor assim fazendo com que um ver oque o outro faz ou executa esse scritp não afeta outros jogadores
-- ============================================
-- ROBLOX P2P SYNC REAL (CHAT ANTIGO + EVENTOS)
-- Sala fixa: room_1771375142143_egez7i58n
-- ============================================
local ROOM_ID = "room_1771375142143_egez7i58n"
local SERVER_URL = "https://preview-sandbox--fc671c8f1b2aaed12b176e9b14797ff5.base44.app"
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local Chat = game:GetService("Chat")
local player = Players.LocalPlayer
local CLIENT_ID = HttpService:GenerateGUID(false)
local lastChatId = ""
local lastEventId = ""
print("===================================")
print("SYNC REAL ATIVO")
print("Sala:", ROOM_ID)
print("Player:", player.Name)
print("Client ID:", CLIENT_ID)
print("===================================")
------------------------------------------------
-- ENVIAR CHAT (CHAT PADRÃO ROBLOX)
------------------------------------------------
player.Chatted:Connect(function(msg)
pcall(function()
HttpService:RequestAsync({
Url = SERVER_URL .. "/api/chat/send",
Method = "POST",
Headers = {["Content-Type"] = "application/json"},
Body = HttpService:JSONEncode({
room_id = ROOM_ID,
client_id = CLIENT_ID,
sender = player.Name,
message = msg,
time = os.time()
})








Legal de mais