|
| 18 May 2014 07:22 PM |
Why is this valid local ws = Workspace but this isn't? local p = Players |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 07:23 PM |
| ...and you made http://web.roblox.com/Groups/group.aspx?gid=1087701, copying the logo of Master Scripter. |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 07:24 PM |
This is not scripting helpers
The reason is that there is not a set variable for Players,
To index workspace you can simply write Workspace.Index Because there is a set variable for Workspace
To index players you must index game first game.Players.Index Because there is no set variable for Players |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 18 May 2014 07:24 PM |
When you type:
local ws = Workspace
You are really saying
local ws = GLOBAL_ENVIRONMENT["Workspace"]
Where GLOBAL_ENVIRONMENT is a table which contains things like print, loadstring, pairs, game, etc. Basically everything you can access.
And it just so happens that while there's a shortcut for Workspace, there is none for Players. So you have to do game:GetService("Players") |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 07:26 PM |
@TheLua
I sent the owner of MasterScripters a message telling him I was going to do that, and he didn't object.
@Dog
This thread belongs here. I'm not giving you a script to fix, I'm just asking a question I've been wondering. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 18 May 2014 07:27 PM |
| So basically ROBLOX was like "People will get tired of typing game.Workspace, let's just make a shortcut so they can type Workspace." But they did no such thing for Players. |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 07:33 PM |
Help: 1. the action of helping someone to do something; assistance. Request: 1. an act of asking politely or formally for something.
You're asking (requesting) for assistance in understanding a concept (help). Help. Requesting. Help Request.
"Anything about scripting that is not a help request or topic belongs here." - scripters
Put it in god damn scripting helpers. |
|
|
| Report Abuse |
|
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
|
| 18 May 2014 07:44 PM |
Workspace = shortcut for game.Workspace or game:GetService("Workspace")
There isn't one for Players. Use p = game.Players or p = game:GetService("Players") |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 07:47 PM |
| Oh, and I'd also like to point out how stupid it was that you thought he was okay with the logo thing. He does not come on often, and has almost certainly not read your message. A lack of objection is not permission. If I walk up to a sleeping man, whisper "Can I borrow all of your money", and then take it because he didn't say no, I'm still a thief. |
|
|
| Report Abuse |
|
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
|
| 18 May 2014 07:50 PM |
Seriously guys, this thread is just asking a simple question. A part of the reason I dislike the Scripters forum so much is the way you all attack anyone who asks a question.
@op see my answer a couple posts above, I answered it without being edgy |
|
|
| Report Abuse |
|
|
| |
|