Idk why script exucation error happening

Ahh Idk why it give exucation time error, I tried to look multiple firing but 1 line look suspicious
And I tried to remove this line then it works but Why it gives error I just setting parent to model.PrimaryPart

local HealthUIF = game.ReplicatedStorage.Events.AtobjClient
local HealthUIFr = game.ReplicatedStorage["Health Gui"]
local OldFr = nil

HealthUIF.OnClientEvent:Connect(function(Model, Debounce)
	if OldFr ~= nil then
		OldFr:Destroy()
	end	
	script.Parent.Handle.Beam.Attachment1 = nil
	if Debounce == 1 then
		local CloneUI = HealthUIFr:Clone()
		OldFr = CloneUI
		CloneUI.Parent = Model.PrimaryPart -- This line
		CloneUI.Placed.Value = true
		script.Parent.Handle.Beam.Attachment1 = Model.PrimaryPart.Attachment
	end

end)

Screenshot_33

The error means that something in the script is fired way too much in a short amount of time. This also happens when you use while true do loop without any delays in it.

It seems like the remote event is fired way too frequently. Try adding a task.wait() or don’t fire the remote event that frequently.