local ReplicatedStorage = game:GetService("ReplicatedStorage")
local groupId = 6413194
local api = require(4690204259)("domain", "key", groupId)
local TeleportService = game:GetService("TeleportService")
local gameID = 5074720976
ReplicatedStorage.Events.Promote.RequestPromotion.OnServerEvent:Connect(function(Player, RankId)
if Player:GetRankInGroup(groupId) ~= groupId then
print(api.setRank(Player.UserId, RankId)) -- Change 5
Player.PlayerGui.RankGUI.Frame.Visible = false
end
end)
^ server script for remote event
script.Parent.MouseButton1Down:Connect(function()
local RankId = 40
game.ReplicatedStorage.Events.Promote.RequestPromotion:FireServer(RankId)
end)
local script that fires remote event ^
I’ve just implemented a new system where people can pick their own orientation for a LGBTQ+ hangout I’ve created. However there seems to be a problem with it crashing due to too many requests at once (my fault for underestimating how many people would come to the grand opening)
If anybody knows how I can prevent this from crashing/timing out? Thanks!