|
| 10 Apr 2015 06:29 PM |
I need a script (preferably a shell) that does the following-
-Checks for a part named "Point" .. [i] in Workspace or a model -On the pressing of a certain character, does a function -Upon pressing one button, cycles up through the function -Upon pressing another, cycles down -Can cycle function at any point in time assuming conditions are met
Is this possible or would it require multiple scripts? If you are not willing to supply a script or are unable to refer me to something like it, please send me a Wiki link so I can learn for myself. Thank you! |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 10 Apr 2015 06:33 PM |
for i,v in pairs(workspace:GetChildren()) do if string.sub(v[i].Name:lower(), 1,5) == "point" then print(i,v) end end |
|
|
| Report Abuse |
|
|
|
| 10 Apr 2015 06:36 PM |
| Is the "1,5" the point[i]s it cycles through? So it goes point1, point2, point3, point4, point5 then stops? |
|
|
| Report Abuse |
|
|