0% found this document useful (0 votes)
11 views3 pages

message

The document is a Lua script for a Roblox game that creates a user interface (UI) for a loading screen and a chat feature. It initializes various UI elements such as frames, text labels, and input boxes, and includes a loading function that checks for necessary services and updates a progress bar. The script also sets up variables for managing player messages, ping, and other functionalities related to the chat system.

Uploaded by

devatdev664
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

message

The document is a Lua script for a Roblox game that creates a user interface (UI) for a loading screen and a chat feature. It initializes various UI elements such as frames, text labels, and input boxes, and includes a loading function that checks for necessary services and updates a progress bar. The script also sets up variables for managing player messages, ping, and other functionalities related to the chat system.

Uploaded by

devatdev664
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

--// UNIVERSAL rtc made by charm

local plyrs = game:GetService('Players')


local runsrv = game:GetService("RunService")
local inputsrv = game:GetService('UserInputService')
local coregui = game:GetService("CoreGui")
local httpsrv = game:GetService('HttpService')

local ui = Instance.new('ScreenGui')
ui.IngoreGuiInset = true
ui.Parent = gethui() or coregui

local ldr = Instance.new('Frame')


ldr.Size = UDim2.new(0.3, 0, 0.3, 0)
ldr.Position = UDim2.new(0.35, 0, 0.35, 0)
ldr.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
ldr.BackgroundTransparency = 0.2
ldr.BackgroundSizePixel = 0
ldr.Parent = ui

local logo = Instance.new('TextLabel')


logo.Size = UDim2.new(1, 0, 0.5, 0)
logo.BackgroundTransparency = 1
logo.Text = 'ix7.cc 0.1'
logo.TextCOlor3 = Color3.fromRGB(255, 255, 255)
logo.TextSize = 50
logo.Font = Enum.Font.Code
logo.TextXAlignment = Enum.TextXAlignment.Center
logo.TextYAlignment = Enum.TextXalignment.Center
logo.Parent = ldr

local prg = Instance.new('Frame')


prg.Size = Udim2.new(0.8, 0, 0.1, 0)
prg.Position = Udim2.new(0.1, 0, 0.6, 0)
prg.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
prg.BorderSizePixel = 0
prg.Parent = ldr

local bar = Instance.new('Frame')


bar.Size = UDim2.new(1, 0, 0.3, 0)
bar.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
bar.BorderSizePixel = 0
bar.Parent = prg

local prc = Instance.new('TextLabel')


prc.Size = UDim2.new(1, 0, 0.3, 0)
prc.Posiiton = UDIm2.new(0, 0, 0.75, 0)
prc.BackgroundTransparency = 1
prc.Text = '0%'
prc.TextColor3 = Color3.fromRGB(255, 255, 255)
prc.TextSize = 20
prc.Font = Enum.Font.SourceSans
prc.TextXAlignment = Enum.TextXAlignment.Center
prc.Parent = ldr

local function load()


local chk = {
{f = function() return plyrs and plyrs.LocalPlayer end, n = 'player'},
{f = function() return httpsrv and httpsrv.JSONDecode end, n = 'json'},
{f = function() return syn and syn.websocket end, n = 'websocket'},
{f = function() return inputsrv and inputsrv.InputBegan end, n = 'input'},
{f = function() return runsrv and runsrv.Heartbeat end, n = 'ui'}
{f = function() return type(task.spawn) == 'function' end, n = 'task'}
}
local p = 0
local s = #chk
for i, t in ipairs(chk) do
if t.f() then
p = p + 1
end
prc.Text = math.floor((p / s) * 100) .. '%'
bar.Size = UDim2.new(p / s, 0, 1, 0)
task.wait(0.5)
end
task.wait(1)
if p == s then
ldr:Remove()
return true
end
prc.Text = 'Failed'
task.wait(2)
ldr:Remove()
return false
end

if load then()

local ply = plyrs.LocalPlayer


local ws = nil
local msg = {}
local txt = ''
local show = false
local last = 0
local sent = {}
local typ = {}
local ping = {}
local ptime = {}
local pm = nil
local mute = {}
local warns = 0
local muted = 0
local retry = 0

local frame = Instance.new('Frame')


frame.Size = UDim2.new(0.3, 0, 0.4, 0)
frame.Position = UDim2.new(0, 10, 0.6, -10)
frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
frame.BackgroundTransparency = 0.5
frame.BorderSizePixel = 0
frame.Parent = ui

local list = Instance.new('UIListLayout')


list.SortOrder = Enum.SortOrder.LayoutOrder
list.Padding = UDim2.new(0, 5)
list.Parent = frame

local txtbox = Instance.new('TextBox')


txtbox.Size = UDim2.new(1, -10, 0, 30)
txtbox.Position = UDim2.new(0, 5, 1, -35)
txtbox.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
txtbox.TextColor3 = Color3.fromRGB(255, 255, 255)
txtbox.Text = ''
txtbox.PlaceholderText = 'Type message...'
txtbox.TextSize = 14
txtbox.Font = Enum.Font.SourceSans
txtbox.BorderSizePixel = 0
txtbox.Visible = false
txtbox.Parent = frame

local pinglbl = Instance.new("TextLabel")


pinglbl.UDim2.new(0, 60, 0, 20)
pinglbl.Position = UDim2.new(1, -65, 0, 20)
pinglbl.BackgroundTransparency = 1
pinglbl.TextColor3 = Color3.fromRGB(255, 255, 255)
pinglbl.Text = 'Ping: 0ms'
pinglbl.TextSize = 12
pinglbl.Font = Enum.Font.SourceSans
pinglbl.TextXAlignment = Enum.TextXAlignment.Right
pinglbl.Parent = frame

You might also like