That’s not my issue, I know how to operate ProximityPrompts, I want to know how to make the valve turn which I will implement into my ProximityPrompt trigger.
I don’t get how it teleports. I’d say rotate it to whatever you want while seeing what changes in the property. And then, change it using tween service like @Orbular3 said. You regulate that it doesn’t spin too far by just adjusting the position to a set amount.
TweenService = game:GetService("TweenService")
Part = script.Parent.Parent
Proxy = script.Parent
Properties = { --Create a Table for what you want the TweenService to do.
Orientation = Vector3.new(90,0,0) -- Set this to whatever suits you
-- Add More if you want to change more.
}
Tween = TweenInfo.new(
1, -- Time
Enum.EasingStyle.Sine, -- How you want your part to Transition
Enum.EasingDirection.InOut, -- In or Out, why not InOut?
0, -- Times Repeated
false -- Reversed?
)
Proxy.Triggered:Connect(function()
TweenService:Create(Part, Tween, Properties):Play() -- Creates using TweenInfro and then plays it.
end)