Advertisement
ur9rgi

Sessions list

Apr 13th, 2024 (edited)
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.68 KB | None | 0 0
  1. local function addSession(host, time, user)
  2.     local frame = script.Parent.SurfaceGui.Trainings.ScrollingFrame
  3.     local Template = script.Parent.SurfaceGui.Trainings.Template
  4.     local clonedTemplate = Template:Clone()
  5.  
  6.     -- Set session information
  7.     clonedTemplate.Parent = frame
  8.     clonedTemplate.Visible = true
  9.     clonedTemplate.Info.Host.Text = host
  10.     clonedTemplate.Info.Time.Text = time
  11.     local charector = user
  12.     local Players = game:GetService("Players")
  13.     local imagelabel = clonedTemplate.Host
  14.     imagelabel.Image = Players:GetUserThumbnailAsync(charector,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420)
  15. end
  16.  
  17. local function concludeSession(host, time, user)
  18.     local frame = script.Parent.SurfaceGui.ConcludedTrainings.ScrollingFrame
  19.     local Template = script.Parent.SurfaceGui.ConcludedTrainings.Template
  20.     local clonedTemplate = Template:Clone()
  21.  
  22.     -- Set session information
  23.     clonedTemplate.Parent = frame
  24.     clonedTemplate.Visible = true
  25.     clonedTemplate.Info.Host.Text = host
  26.     clonedTemplate.Info.Time.Text = time
  27.     local charector = user
  28.     local Players = game:GetService("Players")
  29.     local imagelabel = clonedTemplate.Host
  30.     imagelabel.Image = Players:GetUserThumbnailAsync(charector,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420)
  31. end
  32. -- IGNORE ABOVE, SCRIPTING
  33. addSession("Evilcabbage999", "4:00PM - GMT", 954833588)
  34. concludeSession("Evilcabbage999", "4:00PM - GMT", 954833588)
  35.  
  36. -- 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