Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i move my model to the same position as mouse.hit.p? [closed]

Asked by
Maaruv -3
6 years ago

I want to move my very small model that's a mesh to the same position as mouse.hit.p by selecting a tool

0
are you using a local script or a server script DeviantProphet 50 — 6y
0
local script Maaruv -3 — 6y

Closed as Not Constructive by theCJarmy7, xAtom_ik, InfinitivePixelsJr, Vulkarin, and Shawnyg

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
dispeller 200 Moderation Voter
6 years ago
Edited 6 years ago

This might be what you are looking for!

workspace.Model:MoveTo(Vector3.new(1,2,3))

or in your case,

workspace.Model:MoveTo(mouse.hit.p)
Ad
Log in to vote
0
Answered by 6 years ago

well since you're using a local script you can do this, first you gotta define mouse, and lets say x is what you're trying to place at the mouse

local mouse = player:GetMouse()

local x = Instance.new("Part")
x.CFrame = mouse.hit.p

this should be what you're looking for, you could also clone the part in the script or whatever you're doing