Screen shake effect when touch of a part

The script below does: if you touch the part in a model all parts in the model get in anchored and emit smoke for a few seconds. I was wondering if it was possible if I hit the part it would have a small screen shake effect (like something breaking just short) when touched and then a cooldown.


local function emitSmoke()
	for i, v in pairs(script.Parent.Parent:GetChildren()) do
		v.Anchored = false
		local smoke = Instance.new("Smoke")
		smoke.Parent = v
		smoke.Color = Color3.new(0, 0, 0)
		smoke.Opacity = 0.15
		smoke.RiseVelocity = 4
	end
	
	wait(5) -- Amount of till making smoke dissapear
	
	for i, v in pairs(script.Parent.Parent:GetChildren()) do
		v.Smoke:Destroy()
	end
end
script.Parent.Touched:Connect(emitSmoke)

3 Likes

I think you could just rotate the camera fast so it gets that effect

1 Like

you can try and use this module:

2 Likes