Context: I’ve been trying to create a script where a part’s orientation changes when a ProximityPrompt is activated. To do this I have jumbled up a few of my existing scripts to do this, as usual, it didn’t work. So, if anyone could help me yto fix this, I would really appreciate it!
local Door = script.Parent.Parent
local TweenService = game:GetService("TweenService")
script.Parent.Triggered:Connect(function()
local DoorTween = TweenService:Create(Door, TweenInfo.new(1), {Position = Door.Orientation * CFrame.Angles(0,math.rad(90),0)})
DoorTween:Play()
end)