So basically I have this door when once you do a proximity prompt,
it is supposed to open to 90 degrees.
Also I am pretty sure some of the things I am using are deprecated, what is the non-deprecated version of it?
local model = script.Parent.Parent.Parent local Speed = -1.5 model.PrimaryPart = model.hinge local function EpicYes() model:SetPrimaryPartCFrame(model:GetPrimaryPartCFrame() * CFrame.Angles(0, math.rad(Speed), 0)) end script.Parent.Triggered:Connect(function() game:GetService("RunService").Stepped:Connect(function() EpicYes() end) end)
I’m not sure how I’m supposed to check when it gets to 90 degrees to set the speed to 0