I want to achieve three variables that represent sections around my player the game is gonna be in 2d. The three directions are ‘left’, ‘right’, and ‘up’. To accomplish something like this;
Hey hate to rehash this but I don’t think this will work I tried code like
local mouseVector = (Vector3.new(mouse.X, mouse.Y, 0)).Unit;
print(humanoidRootPart.CFrame.LookVector:Dot((mouseVector-humanoidRootPart.CFrame.p).Unit))
The problem is it changes when I move why does it do that? it gives me like a 0.4 to 0.6 range at first then it changes to like -0.99999 after moving and I don’t know why this is called in runservice btw here’s a video.
sorry for the poor example like me glitching through the wall but you get the gist.