Grabbing Position from Mouse.Hit()?
Asked by
4 years ago Edited 4 years ago
Hi all!
Im using this script I clobbered together by looking at Mouse on the wiki and some stuff from here. I havent really used this before so I'm not even sure if this is really correct but I cant print Pos from here.
1 | local Players = game:GetService( "Players" ) |
2 | local Player = Players.LocalPlayer |
3 | local Mouse = Player:GetMouse() |
4 | local Pos = Vector 3. new(Mouse.Hit.Position()) |
I'm trying to get a mouse position, then convert it so a NPC can move to it. I may just be extremely dumb. I'm newer to scripting so please go easy on me.