script.Parent.turn_tableCore.Touched:Connect(function(subject)
if subject.Name == "turn_tableRight" then
script.Parent:SetPrimaryPartCFrame(CFrame.new(script.Parent.EnemyPart.Position) * CFrame.Angles(0, 0, math.rad(90)))
print("touched")
else
end
end)
This script, along with many other (function() scripts,are just not working. Any idea why?

2 comments
It wouldn't make sense for this to work at all, You're doing the exact same thing he did on the first line but instead there's no functions executing on your code, for it to work you would have to create the function first then you can use it, you can't access functions that got created like :Connect(function(subject) because It's an ' anonymous ' function which can't be reused again.
btw if it worked press accept question