Orbviox
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 798 |
|
|
| 31 Oct 2014 12:06 PM |
game.Players.PlayerAdded:connect(function(playa) if playa.userId == game.CreatorId or playa.Name:lower()== "Player" then playa.CharacterAdded:connect(function(char) script.ScreenGui:clone().Parent = playa.PlayerGui; end ) end end ) Fix it please? |
|
|
| Report Abuse |
|
|
|
| 31 Oct 2014 12:08 PM |
"playa.Name:lower()== "Player""
You just converted it all to lowercase, and are comparing it to something with uppercase. Of course it won't be true!
playa.Name:lower()== "player" |
|
|
| Report Abuse |
|
|
Orbviox
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 798 |
|
| |
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 31 Oct 2014 12:15 PM |
"script.ScreenGui:clone().Parent = playa.PlayerGui;"
What's that semi-colon at the end for? As far as I can see it's used for nothing? Try removing that. |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 31 Oct 2014 12:16 PM |
@SLY
Semi-Colons are not needed, but they 'can' be used. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 31 Oct 2014 12:19 PM |
| Wtf are semicolons used for in lua then? I've scripted most things, but I've never had to use a semicolon for lua in my life. |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 31 Oct 2014 12:22 PM |
Like I said.
They're NOT needed, however they CAN be used.
Example:
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char.Humanoid.WalkSpeed = 30; end); end);
is the exact same thing as:
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char.Humanoid.WalkSpeed = 30 end) end) |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 31 Oct 2014 12:22 PM |
| The reasoning for using is that it's 'good practice' as most every other coding language uses semi-colons. |
|
|
| Report Abuse |
|
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 31 Oct 2014 12:23 PM |
| Ohhhh, so it's just there so you don't get the lines mixed up? Or is there an actual purpose other than that? |
|
|
| Report Abuse |
|
|
SLY3
|
  |
| Joined: 10 Jul 2008 |
| Total Posts: 1700 |
|
|
| 31 Oct 2014 12:24 PM |
Nvm didn't see your newest post.
I would've thought something like that would cause an error in the script, but I guess not. |
|
|
| Report Abuse |
|
|
Orbviox
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 798 |
|
| |
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 31 Oct 2014 12:27 PM |
| Sorry for taking over your thread, Orbviox. Did you fix the issue, or is there still a problem? |
|
|
| Report Abuse |
|
|
Orbviox
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 798 |
|
| |
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 31 Oct 2014 12:33 PM |
I ran the code in a mock situation, and it worked fine.
Are there any errors showing up when you run it? |
|
|
| Report Abuse |
|
|
Orbviox
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 798 |
|
|
| 31 Oct 2014 12:34 PM |
| Just the GUI doesn't show up. |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 31 Oct 2014 12:34 PM |
Perhaps the GUI is 'invisible', and you just can't see it?
Are the parentings correct, and the script is in either the 'workspace' or 'ServerScriptService'? |
|
|
| Report Abuse |
|
|
Orbviox
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 798 |
|
|
| 31 Oct 2014 12:38 PM |
Script in Workspace. Gui in script. Gui has a scrolling frame. Frame has many buttons. |
|
|
| Report Abuse |
|
|
Orbviox
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 798 |
|
| |
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 31 Oct 2014 12:42 PM |
gyazo. com /baab9109f794c0361c861ea125976c16 |
|
|
| Report Abuse |
|
|