Help on Part Rotating Script

I need a script that helps when you touch a part with a specific name, a different part will rotate 180 degrees (again with a specific name).

You can just change the orientation of the part,

part1 = script.Parent --assuming the script is parented to the part
part2 = workspace["Part"] --change the name to the name of the part
part1.Touched:Connect(function(T)
       if T.Parent:FindFirstChild("Humanoid") then
              part2.Orientation = Vector3.new(0,180,0)
       end
end)

Accidently deleted this, whoops.

Thanks for the help. Really appreciated :pray:

1 Like