|
| 09 Jun 2015 07:13 PM |
Output 18:13:01.251 - Value is not a valid member of UnionOperation 18:13:01.251 - Script 'Workspace.I1.Script', Line 3 18:13:01.252 - Stack End
Script: function onTouched(hit) if hit.Parent.Name == "Puck" then game.Workspace.IcingA.Value = true if game.Workspace.IcingA.Value == true and game.Workspace.DValue.Value == false and game.Workspace.TouchedLast.Value == "White" then workspace.Puck:remove() workspace.time.IsRunning.Value = false workspace.OOBblock3.Light.light.Visible = true workspace.display.Value = "Icing" wait(5) workspace.display.Value = "Faceoff where the yellow light is" wait(5) workspace.display.Value = "" workspace.countdown.Value = "5" wait(1) workspace.countdown.Value = "4" wait(1) workspace.countdown.Value = "3" wait(1) workspace.countdown.Value = "2" wait(1) workspace.countdown.Value = "1" wait(1) workspace.countdown.Value = "Go" wait(1) workspace.countdown.Value = "" game.Lighting.Puck3:clone().Parent = game.Workspace game.Workspace.Puck3.Name = "Puck" workspace.OOBblock3.Light.light.Visible = false game.workspace.time.IsRunning.Value = true game.Workspace.IcingA.Value = false end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 07:15 PM |
| Specify, what is the error? |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 07:15 PM |
Line 3 says "game.Workspace.IcingA.Value = true" According to the error, IcingA is a UnionOperation, but UnionOperations do not have .Value properties (according to the wiki) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 07:18 PM |
I don't know. Thats why I need help. It goes like dis if player is not touching a brick, and the touched last value is white, and if the puck touches the brick. then it goes if puck touches brick = true and (brick player isn't touching) = false and touched last = white then ---code |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 07:19 PM |
| My bad I think I know why. I have a value named IcingA thats the thing I want and I have a union part name IcingA |
|
|
| Report Abuse |
|
|