local clickdetector = script.Parent.ClickDetector clickdetector.MouseClick:Connect(function() while true do Instance.new("Part",workspace) end end)
if I run this in roblox studio thing, it's fine. but if I run it in an actual roblox game it doesn't work, when I click it doesn't crash my game. plz help!