|
| 15 Oct 2013 10:03 AM |
gui2 = script.Parent.Parent.Parent.Frame:WaitForChild("Beamer").Beam
Like, it waits for Beamer to be a part in Frame so it works. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Oct 2013 10:13 AM |
The long script from:
http://wiki.roblox.com/index.php/Collision_detection_for_GUI%27s
But I changed gui1 and gui2
Why doesn't this work? (gui2 tweens into gui1)
gui1 = script.Parent gui2 = script.Parent.Parent.Parent.Frame:WaitForChild("Beamer").Beam |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2013 10:43 AM |
| I really need help with gui collisions. |
|
|
| Report Abuse |
|
|
getkoed
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 2298 |
|
|
| 15 Oct 2013 10:47 AM |
| Try changing it to findFirstChild. |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2013 10:52 AM |
Still doesn't work:
16:51:08.465 - Players.Player1.PlayerGui.space.Game.Enemies.enemy.collide:2: attempt to index a nil value 16:51:08.466 - Script 'Players.Player1.PlayerGui.space.Game.Enemies.enemy.collide', Line 2 16:51:08.466 - stack end |
|
|
| Report Abuse |
|
|
getkoed
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 2298 |
|
|
| 15 Oct 2013 10:53 AM |
| Then you got the parents wrong or Beam doesn't exist in Beamer. |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2013 10:54 AM |
| Psh. The Parents are right, and beam does go into Beamer. It's just that Beamer is cloned into Frame, thats why I need it too wait. Also I don't think I done the collision script correctly. |
|
|
| Report Abuse |
|
|