Why Isn't This Working?

I was making a super simple example for my friend and I was showing him how to use ___.Touched:Connect(function() and it just didn’t work? I’m so confused…

game.Workspace.owPart.Touched:Connect(function()
	game.Workspace.Sound:Play()
	print("Touched Part")
end)

This should 100% work am I wrong?

image
Genuinely confused, as an alright scripter I’m so confused.

Hahah,touched is the worst thing

If u want to use touched event,you have to do these three stayments

Local player =(your pararmeter thing).Parent

Local humanoid = player:wai…

Local gameplayer = game.Players:GetPlayerFromCharacter(player)

If gameplayer then

End

1 Like

If I remember, that’s the icon for a local script? Local scripts cannot be ran in the workspace

1 Like

Yes,you are abosultely right .you are correct

YES TY!!!SDNAFJAGSJFHAGSYESDNAFJAGSJFHAGSYESDNAFJAGSJFHAGSYESDNAFJAGSJFHAGSYE thanks!