How do. i make this so that it does not only clone once

local Button = script.Parent
local MainFrame = script.Parent.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage:WaitForChild("CookieEvent")
local Cookie = ReplicatedStorage:WaitForChild("Cookie")
local Proximity = game.Workspace:WaitForChild("Plate").Proximity

Button.MouseButton1Click:Connect(function()
	MainFrame.Visible = false
	Event.OnClientEvent:Connect(function()
		local Clone = Cookie:Clone()
		Clone.Parent = game.Workspace
		Clone.Anchored = false
		Clone.Position = Proximity.Position
	end)
end)

So when the button is clicked repeatedly it only clones once. How do i make it so it keeps on cloning every-time the button is pressed?

You have to fire the event in the clicked event. What you are doing is not firing the event

i already fired the event in anotyher script.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage:WaitForChild("CookieEvent")

game.Players.PlayerAdded:Connect(function(player)
	Event:FireAllClients(player)
end)

It does clone but not multiple times. The script does work but not the. way i want it to.

Yes, however this is only being called when the player first joins

so how should i change it so it fits what i want it to do?