This script seems to not print anything (or does anything in general). It still fires the EyeBlinder event though.

Script:

if ExplosionSize >= 150 then
	game.ReplicatedStorage.Events.EyeBlinder:FireAllClients()
	local function ShockwaveTouch(Touch)
		print(Touch.ClassName)
		if Touch.Parent:FindFirstChild("Humanoid") == nil then
			if Touch.ClassName == "Part" or Touch.ClassName == "MeshPart" or Touch.ClassName == "UnionOperation" then
				if Touch.Locked == false then
					if Touch.Parent ~= Explosion then
						Touch.Anchored = false
					end
				end
			end
		end
	end
	
	Explosion.Shockwave.Touched:Connect(ShockwaveTouch)
end

3 comments

0

Is the shockwave something with a hitbox?

0

The shockwave is a mesh. I have another touch script for it that works completely fine.

0

Make sure you're using server script for these reasons.