Hi, I’m trying to group lock this proximity prompt script. It’s for a baggage door animation in a-chassis
wait(0.1)
local H = script.Parent.Parent.Parent.R1.Value
db = 1
script.Parent.Parent.ProximityPrompt.Triggered:Connect(function()
if db == 1 then
db = 2
H.HingeConstraint.TargetAngle = -155
script.Parent.ActionText = "Close"
script.Parent.ObjectText = "Close Baggage Door"
else
db = 1
H.HingeConstraint.TargetAngle = 0
script.Parent.ActionText = "Open"
script.Parent.ObjectText = "Open Baggage Door"
end
end)