this is so strange to me because this code was working, but whenever i moved to a new pc it suddenly stopped working. any ideas for help?EDIT: since no one is responding, can someone just give me code to replace clamp?
min = 0 //remplace 0 by the minimum valuemax = 10 //remplace 10 by te maximum valueval = speed //remplace speed by the value you want to clampif val < min{ val = min}if val > max{ val = max}