Touched event just doesn't fire

i have no clue. the game has terrain. tried in and out of water. it worked before. could this be a steaming issue?
script 1:

local IsAllHoles = false
print(".")
for _, child in ipairs(game.Workspace.Technical:GetChildren()) do
	child.Touched:Connect(function(hit)
		if game.Players:GetPlayerFromCharacter(hit.Parent) then
			print(".")
			child:Destroy()
			if #game.Workspace.Technical:GetChildren() == 0 then
				IsAllHoles = false
				game.SoundService.Water.Playing = false
				game.SoundService.VoidNoises.Playing = true
				hit.Parent.Humanoid.Health = 0
				game.Workspace.LakeParts:Destroy()
			else
				hit.Parent.Humanoid.Health = 0
				game.SoundService.Water.Volume += 0.3
			end
		end
	end)
end

script 2:

local ts = game:GetService("TweenService")
local lighting = game.Lighting
local ti = TweenInfo.new(5,
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.Out
)
print(".")
local tg = {Ambient = Color3.new(0)}
local tc = ts:Create(lighting, ti, tg)
for _, v in ipairs (game.Workspace.Teleport:GetChildren()) do
	v.Touched:Connect(function(hit)
		if game.Players:GetPlayerFromCharacter(hit.Parent) then
			print(".")
			tc:Play()
			task.wait(5)
			game:GetService("TeleportService"):Teleport(13567760719)
		end
	end)
end

the scripts run but the event doesn’t fire?

1 Like

is CanTouch property on?

1 Like

yeah. of course it is!
rawblox

1 Like

are the parts are anchored? and are you sure the folder only consists of parts?

1 Like

yeah. i seriously have no clue as of why this happens. it worked before

1 Like

try using pairs instead of ipairs

1 Like

doesn’t change anything :sob:
this is so annoying

1 Like

If the parts are anchored, then .Touched won’t fire since anchored parts aren’t really physically simulated.

1 Like

??? wha?? that is false. it has always worked for me and in the nearly identical version of the same place it works fine.
LITERALLY IN THE SAME POST:


(caps)
also that post is totally different since this is humanoids, not parts

1 Like

Change ‘hit.Parent’ to: ‘hit:FindFirstAncestorOfClass(“Model”)’

1 Like

that looks way too weird. i have never had an issue with that and you don’t even touch a part when u spawn in

1 Like

test it and tell me if it works

1 Like

help
image

Ya this happened to me to but I figured out that when I played my game in Roblox, it worked.

1 Like

The Touched event is broken currently

1 Like

i hope this is true since the scripts are client sided.

I’ve decided to handle the touch event on the server until roblox fixes the bug. yes, it is a roblox related issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.