Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to get the rotation?

local currentShelfPos = script.Parent.Parent:GetPrimaryPartCFrame()
		print(currentShelfPos)
		local X = currentShelfPos.X
		local Y = currentShelfPos.Y
		local Z = currentShelfPos.Z
		script.Parent.Parent.Parent.Parent.AvailableCar[btn.Text]:SetPrimaryPartCFrame(CFrame.new(X,Y,Z))

So this bit works so far, it puts the car in the same position as the other car, How would I make it have the same rotation?

Thanks

1 answer

local currentShelfPos = script.Parent.Parent:GetPrimaryPartCFrame()
script.Parent.Parent.Parent.Parent.AvailableCar[btn.Text]:SetPrimaryPartCFrame(currentShelfPos)

This discussion is preserved as it was. New answers, comments, and votes are closed.