so here are the scripts, how do i make it 2
this one prints 1 on touch.
01 | local pedestal = 0 |
02 |
03 | function hit 2 () |
04 | wait( 0.1 ) |
05 | if script.Parent.Transparency = = 0.5 then |
06 | pedestal = pedestal + 1 |
07 | print (pedestal) |
08 | script:Destroy() |
09 | end |
10 | end |
11 |
12 | script.Parent.Touched:Connect(hit 2 ) |
this one also prints 1 on touch
01 | local pedestal = 0 |
02 |
03 | function hit 2 () |
04 | wait( 0.1 ) |
05 | if script.Parent.Transparency = = 0 then |
06 | pedestal = pedestal + 1 |
07 | print (pedestal) |
08 | script:Destroy() |
09 | end |
10 | end |
11 |
12 | script.Parent.Touched:Connect(hit 2 ) |