My .setup in my module is some how duplicating the instance its creating

Title says it all,

Being run via command bar. require(a asset id I cant share).setup()

Module Script
local module = {}

function module.setup()

print("rblxClans Auto SetUp | LOADING")

--if not game.CoreGui:FindFirstChild("rblxClansStartUp") then

local ui = script.rblxClansStartUp:Clone()

ui.Parent = game.CoreGui

ui.SettingUp.Visible=true

ui.ThankYou.Visible = true

if game.ReplicatedStorage:FindFirstChild("NotificationEvent") then

local notifications = Instance.new("RemoteEvent")

notifications.Name = "NotificationEvent"

notifications.Parent = game.ReplicatedStorage

else

local found = game.ReplicatedStorage:FindFirstChild("NotificationEvent")

found:Destroy()

end

if game.ReplicatedStorage:FindFirstChild("ReportEvent") then

local reports = Instance.new("RemoteEvent")

reports.Name = "ReportEvent"

reports.Parent = game.ReplicatedStorage

else

local found = game.ReplicatedStorage:FindFirstChild("ReportEvent")

found:Destroy()

end

if game.StarterPlayer.StarterPlayerScripts :FindFirstChild("Notification") then

script:FindFirstChild("Notification"):Clone().Parent = game.StarterPlayer.StarterPlayerScripts

else

local found = game.StarterPlayer.StarterPlayerScripts:FindFirstChild("Notification")

found:Destory()

end

if game.StarterPlayer.StarterPlayerScripts:FindFirstChild("BlueTheme") then

script:FindFirstChild("BlueTheme"):Clone().Parent = game.StarterPlayer.StarterPlayerScripts

else

game.StarterPlayer.StarterPlayerScripts:FindFirstChild("BlueTheme"):Destroy()

end

wait(4)

ui.Done.Visible=true

ui.SettingUp.Visible=false

ui.ThankYou.Visible = false

wait(5)

ui:Destroy()

print("rblxClans Auto SetUp | LOAD COMPLETED")

end
return module
Explorer Screenshots

image