-
What do you want to achieve? I want to get mouse position to tween a part to your mouse location in 3D space. I need x and z position cause y will always stay the same. But I can’t get the z position cause your cursor moves only in 2D dimensions.
-
What is the issue? I don’t know where to start or how to do it.
-
What solutions have you tried so far? Searching it on youtube and devforum and looking persons script that how he did it.
1 Like
local mouse = game:GetService("Players").LocalPlayer:GetMouse()
local position = mouse.Hit.Position
-- do something here
2 Likes
ok ty, I’ll look at it and see if it works:)
You can try mouse.Hit.Position, it returns the mouse position in 3d space.