How do I make a model move to one side?
I have this rubbish, inefficient script I made that makes a model go UP. How would I make a more efficient type, that moves 5 studs in 5 seconds?
02 | script.Parent.Parent.DoTTAlarm.Button 1. ClickDetector.MaxActivationDistance = 0 |
04 | script.Parent.Parent.DoTTAlarm.Button 1. BrickColor = BrickColor.new( 21 ) |
06 | script.Parent.Parent.DoTTAlarm.Alarm.Sound:Play() |
08 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
10 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
12 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
14 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
16 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
18 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
20 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
22 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
24 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
26 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
27 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
29 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
31 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
33 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
35 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
37 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
39 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
41 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
43 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
45 | script.Parent:TranslateBy(Vector 3. new( 0 , 0.5 , 0 )) |
47 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
49 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
51 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
53 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
55 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
57 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
59 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
61 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
63 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
65 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
67 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
69 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
71 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
73 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
75 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
77 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
79 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
81 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
83 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
85 | script.Parent:TranslateBy(Vector 3. new( 0 ,- 0.5 , 0 )) |
87 | script.Parent.Parent.DoTTAlarm.Button 1. BrickColor = BrickColor.new( 28 ) |
89 | script.Parent.Parent.DoTTAlarm.Button 1. ClickDetector.MaxActivationDistance = 10 |
91 | script.Parent.Parent.DoTTAlarm.Alarm.Sound:Stop() |
94 | script.Parent.Parent.DoTTAlarm.Button 1. ClickDetector.MouseClick:connect(DoorOpen) |