the gui wont clone after a character reset only when the player joins but if they reset it wont clone but idk why because the givegui function is firing every time a character is added
local allowedUsers = { 3781250545, 2332623114, 2907972496 }
local gui = game:GetService("ServerStorage").Storage.Executor
function giveGUI(plr)
local search = table.find(allowedUsers, plr.UserId)
if search ~= nil then
gui:Clone().Parent = plr:WaitForChild("PlayerGui")
end
end
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
giveGUI(plr)
end)
end)