Script Not Printing

The prompt should theoretically should work since any model prompted will print the “lol.”

I wan’t it so any model that follows the v.BoxOfYes.Attachment.ProximityPrompt.Triggered.Connect(function() should go through.

for i, v in pairs(script.Parent:GetChildren()) do
	if v:IsA("Model") then
		
		v.BoxOfYes.Attachment.ProximityPrompt.Triggered.Connect(function()
			print("lol")
		end)
		
	end
end

:Connect instead of .Connect ?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.