|
| 13 Apr 2015 02:04 PM |
Ok, so I want to make a pane of glass, that when you touch it, shaters. I have modeled out what sharederd glass I want, and I have a normal pane. I went to make a script that would essentially move the normal pane away, and place in the shattered one. It comes up with the error: GlassShard1 is not a valid member of Model
Here is my code:
function OnTouched() script.Parent.Position = Vector3.new(0,0,-3.5) script.Parent.Parent.GlassShard1.Position = Vector3.new(0,0,-3.5) end
script.Parent.Touched:connect(OnTouched)
The heiarchy looks like this:
-Glass -GlassShard1 -GlassFull -Script
What did I do wrong? |
|
|
| Report Abuse |
|
|
| |
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 13 Apr 2015 02:30 PM |
| You moved the fullglass to the same position? |
|
|
| Report Abuse |
|
|
| |
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 13 Apr 2015 03:44 PM |
You have to remove it and put the scattered plate there?
So the fullglass should move to somewhere else? |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2015 09:04 PM |
| Ok, just FYI I can move the full glass just fine. it is when I try to move the glass shard that the problem occurs. Can someone please help? |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Apr 2015 02:25 PM |
| Nvm, i changed it somehow and not it is just a matter of a group not having a positon. |
|
|
| Report Abuse |
|
|