0% found this document useful (0 votes)
14 views2 pages

Roblox Session Management Script

This document provides instructions and code for setting up a product to sync sessions using a GitBook documentation page and Roblox code. The code returns a table with settings like an API key and token for connecting to a "Sessions" board and list on a sync platform. It includes fields for host and co-host names that will retrieve user images and format the values.
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)
14 views2 pages

Roblox Session Management Script

This document provides instructions and code for setting up a product to sync sessions using a GitBook documentation page and Roblox code. The code returns a table with settings like an API key and token for connecting to a "Sessions" board and list on a sync platform. It includes fields for host and co-host names that will retrieve user images and format the values.
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/ 2

-- ██████╗░██████╗░░█████╗░██████╗░██╗░░░░░███████╗████████╗

-- ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██║░░░░░██╔════╝╚══██╔══╝
-- ██║░░██║██████╔╝██║░░██║██████╔╝██║░░░░░█████╗░░░░░██║░░░
-- ██║░░██║██╔══██╗██║░░██║██╔═══╝░██║░░░░░██╔══╝░░░░░██║░░░
-- ██████╔╝██║░░██║╚█████╔╝██║░░░░░███████╗███████╗░░░██║░░░
-- ╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░░░░╚══════╝╚══════╝░░░╚═╝░░░
-- Refer to our documentation to set up our product properly: https://droplet-
systems.gitbook.io/syncsession

local Players = game:GetService('Players')

return {
Key = '7f60ee55ef04c4b487342b597c429516',
Token = '1a2b3c4d5e6f7g8h9i0j1a2b3c4d5e6f7g8h9i0j', -- Put the Token I will
send you a link for here
BoardName = 'Sessions',

List = 'Upcoming',

Fields = {
{
Argument = 'Host',

Image = nil,
ImageColor = Color3.new(255, 255, 255),
GetImage = function(Value)
local Status, Identifier = pcall(function()
return Players:GetUserIdFromNameAsync(Value)
end)

if not Status then


Identifier = nil
end

if Identifier then
return string.format('rbxthumb://type=AvatarHeadShot&id=
%s&w=420&h=420', Identifier)
else
return 'rbxassetid://7072717759'
end
end,

Value = '<b>%s</b> is hosting.',


GetValue = function(Value)
local Status, Result = pcall(function()
return Players:GetUserIdFromNameAsync(Value)
end)

if not Status then


Result = nil
end

if Result then
return Value
else
return 'Unknown user'
end
end
},
{
Argument = 'Co-Host',

Image = nil,
ImageColor = Color3.new(255, 255, 255),
GetImage = function(Value)
local Status, Identifier = pcall(function()
return Players:GetUserIdFromNameAsync(Value)
end)

if not Status then


Identifier = nil
end

if Identifier then
return string.format('rbxthumb://type=AvatarHeadShot&id=
%s&w=420&h=420', Identifier)
else
return 'rbxassetid://7072717759'
end
end,

Value = '<b>%s</b> is co-hosting.',


GetValue = function(Value)
local Status, Result = pcall(function()
return Players:GetUserIdFromNameAsync(Value)
end)

if not Status then


Result = nil
end

if Result then
return Value
else
return 'Unknown user'
end
end
}
},

Seperator = ': ',

Wait = 10
}

You might also like