I’m trying to use a trace to find the Z of the ground below a certain prop, but whenever i make the trace outside of the world it makes my game crash. heres the code im using
local tracedata = {}
tracedata.start = pos
tracedata.endpos = pos+Vector(0,0,-100000)
local trace = util.TraceLine(tracedata)
local Z = trace.HitPos.z
all i need to do is get the Z of the ground below a prop