Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function addSession(host, time, user)
- local frame = script.Parent.SurfaceGui.Trainings.ScrollingFrame
- local Template = script.Parent.SurfaceGui.Trainings.Template
- local clonedTemplate = Template:Clone()
- -- Set session information
- clonedTemplate.Parent = frame
- clonedTemplate.Visible = true
- clonedTemplate.Info.Host.Text = host
- clonedTemplate.Info.Time.Text = time
- local charector = user
- local Players = game:GetService("Players")
- local imagelabel = clonedTemplate.Host
- imagelabel.Image = Players:GetUserThumbnailAsync(charector,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420)
- end
- local function concludeSession(host, time, user)
- local frame = script.Parent.SurfaceGui.ConcludedTrainings.ScrollingFrame
- local Template = script.Parent.SurfaceGui.ConcludedTrainings.Template
- local clonedTemplate = Template:Clone()
- -- Set session information
- clonedTemplate.Parent = frame
- clonedTemplate.Visible = true
- clonedTemplate.Info.Host.Text = host
- clonedTemplate.Info.Time.Text = time
- local charector = user
- local Players = game:GetService("Players")
- local imagelabel = clonedTemplate.Host
- imagelabel.Image = Players:GetUserThumbnailAsync(charector,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420)
- end
- -- IGNORE ABOVE, SCRIPTING
- addSession("Evilcabbage999", "4:00PM - GMT", 954833588)
- concludeSession("Evilcabbage999", "4:00PM - GMT", 954833588)
- -- Guide: Place your username (this will be displayed as the host), then select time, this time is for today. After you can get a userid you want to be the picture. Check the URL at the top of the screen and copy the number. Delete your addsession after it concluded.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement