So basically I'm trying to make a sliding door that when you touch it it decreases .1 studs every .1 second, or even smoother.
local a = game.Workspace.DoorEntrance.DL local b = game.Workspace.DoorEntrance.DR function OpenDoor(Slide) a.Vector3.Size = b.Vector3.Size = script.Parent.Touched:connect(onTouch) end --unfinished.
A few things here buddy! c;
local a = game.Workspace.DoorEntrance.DL local b = game.Workspace.DoorEntrance.DR local parent = script.Parent --You don't have to add a variable for script.Parent, just how I script is all function OpenDoor() a.Size = Vector3.new(0,0,0) --Change this 0,0,0 to whatever you want b.Size = Vector3.new(0,0,0) --Change this 0,0,0 to whatever you want end parent.Touched:connect(OpenDoor)
If this works out for you, don't forget to upvote this answer, we both get rep! :D