I am trying to have a local script so that when the player touches a union, it will print the word "awesome" into the output, but whenever I touch the union, it does not print "awesome". Here is my code:
local part = script.Parent local function objectTouched(touch) if touch.Parent:FindFirstChild("Humanoid") then print("awesome") end end part.Touched:Connect(objectTouched)
Are there any errors in this code that would prevent it from running?