#CFrame tween table for a door isn't working
1 messages · Page 1 of 1 (latest)
The issue here is, you are trying to get the cframe of this hinge part, but it can’t find the part
Make sure you actually have the part before trying to change its properties
What you can do to fix this is to wait for the part.
So you could do this to safely guard against errors, and to have it tell you if it couldn’t find the part:
local hinge = (pathToYourModel)
if not hinge and typeof(hinge) ~= “model” then
warn(“Hinge not found!”)
return
end
— if the script gets to this point then we KNOW hinge is there AND is a model
— add your other code below
Ohhh! I see the issue, I tried doing something else where I had it as the primary part but then I got rid of it and forgot to change it. That’s why it wasn’t getting the part, Thanks!