.Touched Event Not Firing for LocalScript

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want the LocalScript to print if the part has been touched.

  2. What is the issue? Include screenshots / videos if possible!
    The issue is that it will not print anything.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Can’t find any solutions.

Here is my code:

script.Parent.Touched:Connect(function()
	print("Touched")
end)

Use a server script, local scripts only affect a single client, this is why they are called local scripts. The changes made by a local script are local to a singular players client, therefore must be inside a player or character. If you need to use a local script, place it in StarterPlayerScripts or StarterCharacterScripts and write

workspace.Part.Touched:Connect(function()
print("Part has been touched")
end)