I have a Part with a BodyPosition inside. I want the BodyPosition's position property (Which is Vector3) to be where my mouse is pointing (mouse.Hit, Which is CFrame).
This is what I have right now:
local mouse = game.Players.LocalPlayer:GetMouse()
wait(10)
game.Workspace.Part.BodyPosition.position = Vector3.new(mouse.Hit)
Every time though after 10 seconds of randomly moving my mouse, the position property still reads 0,0,0 every time (Meaning it has not changed).
There is no output.
How can I make it so the position property is where my mouse is?
NOTE: This is inside a LocalScript and FilteringEnabled is NOT on.

4 comments
Or I think if you want you can just write game.Workspace.Part.BodyPosition.position = mouse.Hit
Tried that, I get an error in Output "Vector 3 expected, got userdata".
Discern, long time no see! I got more reputation, more than last time at least! (By a hundred).
@Lord I kinda took a break from scripting/developing and focused on war clans for a while for the fun of it... Lol. Hopefully I'm back to developing and right now I'm making a new game!