it's underlines end) I don't know whats wrong
local CFrameTester = script.Parent if script.Parent.Parent.Tester1.Touched:Connect(function() print("it worked!") end)
Your mistake was really simple: do NEVER put an if statement if you are making a function. That being said, just remove the if statement and you will be good to go!
local CFrameTester = script.Parent script.Parent.Parent.Tester1.Touched:Connect(function() print("it worked!") end)
This is very simple. So insert a part in the workspace and insert a script in the part and type this
Script
local function onTouch(hit) print("it worked!") end script.Parent.Touched:Connect(onTouch)
Now when you touch it, it will print "It Worked"