I cant get this model to move up

ive tried a whole lot of stuff but I cant figure it out.

Im trying to take the current models position and move it up. everything ive tried just ended up moving the glass to the middle of the map

Here current code.

script.Parent.Triggered:Connect(function()
	
	local window = script.Parent.Parent.Parent
	window:SetPrimaryPartCFrame(window.PrimaryPart.CFrame * Vector3.YAxis(2.75))  
end)

SetPrimaryPartCFrame is deprecated. Use the PivotTo and GetPivot methods instead.

1 Like

Vector3.YAxis does not exist.

Code:

local proximityPrompt = script.Parent
local window = proximityPrompt.Parent.Parent

proximityPrompt.Triggered:Connect(function()
	window:PivotTo(window.PrimaryPart.CFrame + Vector3.yAxis * 2.75)  
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.