pokymon92
|
  |
| Joined: 24 Jan 2010 |
| Total Posts: 53 |
|
|
| 27 Dec 2013 03:16 PM |
In the output of the script:
------------------------------------------------ script.Parent.Touched:connect(function(toucher) if game.Players:findFirstChild(toucher.Parent.Name) then a = math.random(1,100) if a == 1 then print("A Wild Pokemon Appeared!") toucher.Parent.Torso.CFrame = workspace.Arena1.Start1.CFrame+Vector3.new(0,5,0) end end end) ------------------------------------------------
I keep getting "Touched is not a valid member of Model", how do I avoid this error and why do I encounter this problem? |
|
|
| Report Abuse |
|
|
Alex4897
|
  |
| Joined: 06 Aug 2008 |
| Total Posts: 14517 |
|
|
| 27 Dec 2013 03:19 PM |
Is your script's parent the model itself or a part?
I am an eggspert in the eggcelent art of egg puns. |
|
|
| Report Abuse |
|
|
pokymon92
|
  |
| Joined: 24 Jan 2010 |
| Total Posts: 53 |
|
| |
|
Alex4897
|
  |
| Joined: 06 Aug 2008 |
| Total Posts: 14517 |
|
|
| 27 Dec 2013 03:22 PM |
Well the issue is that your trigger is when someone touches the model. Nothing touches models, touched events only work on parts.
I am an eggspert in the eggcelent art of egg puns. |
|
|
| Report Abuse |
|
|
pokymon92
|
  |
| Joined: 24 Jan 2010 |
| Total Posts: 53 |
|
| |
|