I am trying to make rotate something according to the surface of the part the mouse clicks, but I have no idea what output it gives! I have tried both strings and values but I end up having it print "Error". Anyone who can help me?
local surf = mouse.TargetSurface
if surf == "0" then
print("Right")
elseif surf == "1" then
print("Top")
elseif surf == "2" then
print("Back")
elseif surf == "3" then
print("Left")
elseif surf == "4" then
print("Bottom")
elseif surf == "5" then
print("Front")
else
print("Error")
end
