so, I am trying to make a placement system and I keep trying to get the mouse position. I am trying to only use the Y position for this. I've tried this
workspace.Handgunner.Position = Mouse.Position
and I could not find anything that would help.
Like YoutubeMaster Said, mouse.Hit.Position, returns a CFrame, and as you said, the HandGunner is a model, so you would need to do:
workspace.HandGunner.PrimaryPart.CFrame = mouse.Hit
That should work. All it does is just move the models primary part to the mouse.Hit CFrame Or you could do:
workspace.HandGunner:SetPrimaryPartCFrame(mouse.Hit)
As 14zanderbilt, change Mouse.Position
to Mouse.Hit.Position
. Mouse.Hit
returns a CFrame. CFrames have a property called "Position", which gets the Vector3
of the CFrame.
Fixed Part:
workspace.Handgunner.Position = Mouse.Hit.Position
Locked by PrismaticFruits, JesseSong, and Fifkee
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?