Help with remote event

I was trying to make a insert option for my admin panel but It always places two down, I found out that the remote event is being fired twice but I don’t know how to fix that. --Server Script:
print(“Starting???”)
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local sendTextEvent = game.ReplicatedStorage.RemoteEvent2
sendTextEvent.OnServerEvent:Connect(function(player, action, Text, Text2)
print(“Ran Twice”)
if player.UserId == 3072377094 or player.UserId == 5161353938 then
if action == “Taction1” then
if Text2 == “Me” then
local InsertService = game:GetService(“InsertService”)
print(“Placeing!!!”)
local model = InsertService:LoadAsset(Text):GetChildren()[1]
model.Parent = game.Workspace
model:PivotTo(CFrame.new(player.Character.HumanoidRootPart.Position))
else
local InsertService = game:GetService(“InsertService”)
local model = InsertService:LoadAsset(Text):GetChildren()[1]
model.Parent = game.Workspace
model:PivotTo(CFrame.new(Vector3.new(Text2)))

		end
	end
end

end)

– Client Script
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local myRemoteEvent = ReplicatedStorage:WaitForChild(“RemoteEvent2”)
local textButton = script.Parent
local textBox = textButton.Parent:FindFirstChild(“TextBox”)
local textBox2 = textButton.Parent:FindFirstChild(“TextBox2”)
local Plr = script.Parent.Parent.Parent.Parent.Parent
local debounce = false – Add a debounce variable

textButton.MouseButton1Click:Connect(function()
if debounce then return end – Check if debounce is true, if so then return and do not run the rest of the function
debounce = true – Set debounce to true to prevent the function from running again
if Plr.UserId == 3072377094 or Plr.UserId == 5161353938 then
if textBox then
print(“Running”)
myRemoteEvent:FireServer(“Taction1”, textBox.Text, textBox2.Text)
task.wait()
else
print(“TextBox not found”)
end
end
task.wait(1) – Wait for 1 second (or however long you want the delay to be)
debounce = false – Set debounce back to false to allow the function to run again
end)

I can’t see any major issues in the code, so you may have to check the basics:
Ensure that haven’t accidently put the same script twice for either the firing of the remote of the receiving.

An easy way to check is just to do ctrl+shift+F, then searching for the name of the remote event, namely RemoteEvent2. This will show all matches for that particular remote