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!

3 comments

0

maybe while wait() do

1

Why are you trying to crash games in the first place?

0

It's a test for something i'm doing, but it will crash my roblox studio (as i want it to) but never in the actual game