1 | if game.Workspace.SpawnedObjects:FindFirstChild("Battery1") then |
2 | if game.Workspace.SpawnedObjects.Battery1.Handle:FindFirstChild("ClickDetector") then |
3 | fireclickdetector(game.Workspace.SpawnedObjects.Battery1.Handle.ClickDetector) |
4 | end |
5 | end |
6 | if game.Workspace.SpawnedObjects:FindFirstChild("Battery2") then |
7 | if game.Workspace.SpawnedObjects.Battery2.Handle:FindFirstChild("ClickDetector") then |
8 | fireclickdetector(game.Workspace.SpawnedObjects.Battery2.Handle.ClickDetector) |
9 | end |
10 | end |
11 | if game.Workspace.SpawnedObjects:FindFirstChild("Battery3") then |
12 | if game.Workspace.SpawnedObjects.Battery3.Handle:FindFirstChild("ClickDetector") then |
13 | fireclickdetector(game.Workspace.SpawnedObjects.Battery3.Handle.ClickDetector) |
14 | end |
15 | end |
16 | if game.Workspace.SpawnedObjects:FindFirstChild("Battery4") then |
17 | if game.Workspace.SpawnedObjects.Battery4.Handle:FindFirstChild("ClickDetector") then |
18 | fireclickdetector(game.Workspace.SpawnedObjects.Battery4.Handle.ClickDetector) |
19 | end |
20 | end |