local server = "" local serverport = 53640 local clientport = 0 local playername = "" local appearance = "" function dieerror(errmsg) game:SetMessage(errmsg) wait(math.huge) end local suc, err = pcall(function() client = game:GetService("NetworkClient") player = game:GetService("Players"):CreateLocalPlayer(0) player:SetSuperSafeChat(false) game:GetService("Visit") -- Player Properties player.Name = playername player.CharacterAppearance = appearance end) if not suc then dieerror(err) end function connected(url, replicator) local suc, err = pcall(function() --game:SetMessageBrickCount() local marker = replicator:SendMarker() end) if not suc then dieerror(err) end marker.Recieved:wait() local suc, err = pcall(function() game:ClearMessage() end) if not suc then dieerror(err) end end function rejected() dieerror("Error: Rejected by server!") end function failed(peer, errcode, why) dieerror("Failed [".. peer.. "], ".. errcode.. ": ".. why) end local suc, err = pcall(function() client.ConnectionAccepted:connect(connected) client.ConnectionRejected:connect(rejected) client.ConnectionFailed:connect(failed) client:Connect(server, serverport, clientport, 20) end) if not suc then local x = Instance.new("Message") x.Text = err x.Parent = workspace wait(math.huge) end while true do wait(0.001) replicator:SendMarker() end