Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Making a sliding door when a certain group rank?

Asked by 4 years ago

Hello there I am trying to make a door slide open when a certain rank is interacting with it. I tried this code but It didn't worked I tried true and false and it still did not work please help here is my code. Plus the group id is stored in numvalue "L". Sorry about too much lines I just need the group problem fixed.

01local MOVE_IN_BY = 0.25
02local ROOM_LEFT = 0.35
03local WAIT_FOR = 0.2
04 
05local TIME_OPEN = 0
06local model = script.Parent
07local door = model.Door
08 
09door.PrimaryPart = door.Main
10 
11local doorcf = door.Main.CFrame
12local doorX = door.Main.Size.x
13 
14local doorClosed = true
15local doorMoving = false
View all 81 lines...

Answer this question