| |
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 06 Aug 2012 05:12 PM |
Do you want it to pop up for only one player or all the players?
By the way, you didn't define Sensor in the connection line. |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 06 Aug 2012 05:12 PM |
| And there is 1 too many ends, and changes to teh startergui are only visible when a player dies. |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2012 05:12 PM |
You're only making the Gui in the StarterGui visible, so the player would have to reset in order to see it.
You would have to go into the player's PlayerGui and make the Gui inside of there visible.
-Nick |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 06 Aug 2012 05:12 PM |
| And you don't need two ends ;/ |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 06 Aug 2012 05:16 PM |
Sensor = script.Parent function Touched(hit) if hit.Parent:FindFirstChild("Torso") then local playa = game.Players:GetPlayerFromCharacter(hit.Parent) playa.PlayerGui.ScreenGui.Mainframe.Visible = true end end Sensor.Touched:connect(Touched)
|
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 06 Aug 2012 05:16 PM |
If you only want it to work for the player who touched it:
script.Parent.Touched:connect(function (p) if (not p.Parent:findFirstChild("Humanoid")) then return; end if (db) then return; end if (not game.Players:findFirstChild(p.Parent.Name)) then return; end game.Players[p.Parent.Name].PlayerGui.ScreenGui.Mainframe.Visible = true; end); |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 06 Aug 2012 05:19 PM |
| Yeah, our scripts do the same thing, just I prefer the layout of mine :P |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 06 Aug 2012 05:19 PM |
Uh, why not just ask me personally this >.>?
Why ask Droid? |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 06 Aug 2012 05:20 PM |
| Cause I type da quickest ^0^ |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 06 Aug 2012 05:22 PM |
Man, you should go back to where you are... Why did you even start foruming on this forum >.>
You take all my posts...
By the way, what was your fastest at typing the alphabet? |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 06 Aug 2012 05:25 PM |
| Well then your parents are off or you're doing something wrong. |
|
|
| Report Abuse |
|
|
| |
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
|
| 06 Aug 2012 05:25 PM |
--Put this inside the brick
script.Parent.Touched:connect(function(p) player = game.Players:GetPlayerFromCharacter(p.Parent) if player then player.PlayerGui.ScreenGui.Mainframe.Visible = true end end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|