Problem with script for animated hinge door

1. Hello, I need to make animated hinge door system using ProximityPrompt for my experience.

2. What is the issue?: Appearing error in the output CFrame is not a valid member of CFrame - Server - Script:7

3. What solutions have you tried so far?: Yes, I readed all the topics about this … But nothing helps.

local sound = script.Parent.Parent.Creak
local hingle = script.Parent.Parent.Parent.Hinge:GetPivot()
local tween = game:GetService("TweenService")
local open = TweenInfo.new(0.5)
script.Parent.Triggered:Connect(function()
	sound:Play()
	local opening = tween:Create(hingle, open, {CFrame = hingle.CFrame * CFrame.Angles(0, math.rad(-100), 0)})
	opening:Play()
end)
1 Like
local sound = script.Parent.Parent.Creak
local hingle = script.Parent.Parent.Parent.Hinge
local tween = game:GetService("TweenService")
local open = TweenInfo.new(0.5)
script.Parent.Triggered:Connect(function()
	sound:Play()
	local opening = tween:Create(hingle, open, {CFrame = hingle:GetPivot().CFrame * CFrame.Angles(0, math.rad(-100), 0)})
	opening:Play()
end)
2 Likes

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