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)
Negativize
(Negativize)
#2
SetPrimaryPartCFrame
is deprecated. Use the PivotTo
and GetPivot
methods instead.
1 Like
Katrist
(Katrist)
#3
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
system
(system)
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.