of     1   

Twenty1chickens
#223955018Sunday, August 20, 2017 2:10 AM GMT

I want to make a door, that opens and closes. So I need the door to decrease in size but stay against the wall it's joined. (I don't want it to take off 1 from each side) to explain better, can someone give me a script that will make the x cord -1 every second, and check to see if the x size is = 5. once it reaches 5 it stops. this maybe confusing it makes sense in my mind...
Twenty1chickens
#223955576Sunday, August 20, 2017 2:20 AM GMT

b
Twenty1chickens
#223957745Sunday, August 20, 2017 3:03 AM GMT

U
Twenty1chickens
#223978207Sunday, August 20, 2017 2:44 PM GMT

m
nothingguy123
#223981059Sunday, August 20, 2017 3:51 PM GMT

Local d = --door Repeat d.CFrame.x -= 1 Until d.CFrame.x == 5
Twenty1chickens
#223982541Sunday, August 20, 2017 4:25 PM GMT

It's not working, I think It has something to do with my click function. Using a click detector and onClick() Function.
Mitko0o1
#223982767Sunday, August 20, 2017 4:30 PM GMT

http://wiki.roblox.com/index.php?title=API:Class/TweenService https://www.youtube.com/watch?v=oV8HGhZudgk
Twenty1chickens
#223984163Sunday, August 20, 2017 5:01 PM GMT

that doesn't help
Twenty1chickens
#224061682Tuesday, August 22, 2017 2:50 AM GMT

bump again, all I need is it to resize to left...
Quasiduck
#224062601Tuesday, August 22, 2017 3:17 AM GMT

Try to solve it yourself and post the specific part where you are stuck. Post your code along with any errors in the Output after you have attempted. Even if the code isn't actual Lua, but something like if this happens then do this this happens end so it makes it worthwhile helping you because we know that way that you'll probably be able to get results. don't post millions of lines of code either. keep it simple
Quasiduck
#224063094Tuesday, August 22, 2017 3:30 AM GMT

This should do anywho but in future, post your own code for quicker results: d = Workspace.Door --Change this to the directory of your door. debounce = false doorOpening = false function click() if debounce == false then debounce = true if doorOpening == false then for i = 1, 5 do --Do this 5 times wait(0.1) --For aesthetics d.Size = d.Size - Vector3.new(2, 0, 0) --Minus one from both sides of door by minusing 2 d.CFrame = d.CFrame - Vector3.new(1, 0, 0) --Minus one in x direction to keep it in place end doorOpening = true else for i = 1, 5 do --Do this 5 times wait(0.1) --For aesthetics d.Size = d.Size + Vector3.new(2, 0, 0) --Add one from both sides of door by adding 2 d.CFrame = d.CFrame + Vector3.new(1, 0, 0) --Add one in x direction to keep it in place end doorOpening = false end debounce = false end end blahblah.ClickDetector:connect(click)

    of     1