https://gyazo.com/09ca1f332bd0b5569f4efd40e7b843be
https://gyazo.com/ad24baf74b031c4d3a4dcefedd363272
They are clearly not the same model. The script is not working because it’s variables are nil! You need to make sure the content that the script wants should be there.
Yea I removed them because they stopped working, lemme add them and show you the updated one
So what’s the problem? You are making me extremely confused.
The gate is not working like when I put the model that on the script to work, it doesn’t work.
Make sure all of the children of the working model are named and the same in the not working model.
Can you display a photo of your explorer?
I did that but still the same error.
Where is the script located? Also I’d suggest actually learning to script, or at least the basics of it because that script is “scuffed”
When making variables you should have “local”
local val = script.Parent.Parent.Open
local val2 = script.Parent.Parent.Moving
local DA2 = script.Parent.Parent.DoorA2
local DA1 = script.Parent.Parent.DoorA1
Also for this gate you should look at TwenService and try learn that.
I’ve linked a video and the concept of it should be able to be used on the gate as well, as long as you change some stuff.
Lemme try the video cause the script isn’t working
Forgot to link this too but if you’re making a gate that a staff member has to click for it to open, you can use this to start the Tween
But what I need is this to go down not open
https://gyazo.com/8d5ae0d153a4245bfca2a35921d380f0 (the red pillars)
Like when you press a button 3 in the front and the back go down
And when you press it again it will go up
Just so this is buried in the public record, @Ge_inki was asking for scripting support for an experience that we unfortunately later discovered was entirely place stolen from us. For more information, take a look at a comment I made on another thread he posted.
A variable is something that holds data. You need variables when you want values for future use.