Here are my scripts:

script.Parent.MouseButton1Click:Connect(function()
	local folder = game.Workspace:FindFirstChild("Folder")
	folder:Destroy()
end)

2nd:

script.Parent.MouseButton1Click:Connect(function()
	local folder = Instance.new("Folder")
	folder.parent = game.Workspace
	while true do
		local part = Instance.new("Part")
		part.parent = folder
		part.Anchored = false
		wait()			
	end
end	
	

Edited by ~ JesseSong

3 comments

1

youre missing a parenthesis, also please use the codeblock button

0

ty, im new at scripting and was rushing

1

Put a parentheis on line 10 that is, end)