Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage.HostSession.OnServerEvent:Connect(function(Player)
- game.ReplicatedStorage.SessionIsHosted.Value = true
- local data =
- {
- ["content"] = "",
- ["embeds"] = {{
- ["title"] = "**Shift | A session is in progress!**",
- ["description"] = "A shift is being hosted now by, " .. Player.Name .. "! Why don't you head on down and grab something to eat?",
- ["type"] = "rich",
- ["color"] = tonumber(0xffffff),
- ["fields"] = {
- {
- ["name"] = "HOST",
- ["value"] = Player.Name,
- ["inline"] = true
- },
- {
- ["name"] = "STATUS",
- ["value"] = "✅ Commenced",
- ["inline"] = true
- }
- },
- ["thumbnail"] = {
- ["url"] = "https://cdn.discordapp.com/attachments/732224705179680790/790720442313736202/HolidayIcecream.png"
- },
- }}
- }
- local Message = {
- ["content"] = '<@&752185614560133170>'
- }
- local ND = HttpsService:JSONEncode(Message)
- --HttpsService:PostAsync(URL, ND)
- local newdata = HttpsService:JSONEncode(data)
- HttpsService:PostAsync(URL, newdata)
- game.Workspace.SlidingBoard.SurfaceGui.SessionFrame.Frame.HostName.Text = Player.Name
- for i, plr in pairs(game.Players:GetPlayers()) do
- plr.PlayerGui.SessionConfirmation.Main.HostName.Text = Player.Name
- Player.PlayerGui.SessionConfirmation:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment