I'm trying to overwrite certain CFrame values instead of just add to them. Obviously my script below is currently keeping the X and Z the same but add to the Y. Is there a way to completely overwrite the Y value that is there instead of just adding to it?

clone:SetPrimaryPartCFrame(cf * CFrame.new(0,placeMouse.Y,0))

2 comments

0

No

0

is local placeMouse = game.Players.LocalPlayer:GetMouse().Hit.p?