Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
|
| 27 Mar 2014 11:18 PM |
script.Parent.Touched:connect(function(hit) print(hit.Parent.Name) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) Player.PlayerGui.Arcade.TitleScreen.Visible = true Player.PlayerGui.Arcade.Sidebar.Visible = true Player.PlayerGui.Arcade.MusicCore.Visible = true Player.PlayerGui.Arcade.GameArena.Visible = true end)
Ummm... all I can say is nothing appears in output..and there are no errors in output or in script. |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 27 Mar 2014 11:21 PM |
| Check for a Humanoid. If there's no Humanoid, it's not going to be a player. This will break the moment something that's not a character touches it. |
|
|
| Report Abuse |
|
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
|
| 27 Mar 2014 11:23 PM |
like this?
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then print(hit.Parent.Name) local Player = game.Players:GetPlayerFromCharacter(hit.Parent) Player.PlayerGui.Arcade.TitleScreen.Visible = true Player.PlayerGui.Arcade.Sidebar.Visible = true Player.PlayerGui.Arcade.MusicCore.Visible = true Player.PlayerGui.Arcade.GameArena.Visible = true end end)
that didn't work ^ |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 27 Mar 2014 11:26 PM |
| That should've worked. Any errors? Perhaps you directed to something wrong. |
|
|
| Report Abuse |
|
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
|
| 27 Mar 2014 11:29 PM |
| its a local script is that fine? |
|
|
| Report Abuse |
|
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
|
| 27 Mar 2014 11:56 PM |
The problem is the local
it was a local script
|
|
|
| Report Abuse |
|
|
|
| 28 Mar 2014 02:39 AM |
| Only local scripts work in starter GUI,mstarter pac |
|
|
| Report Abuse |
|
|