|
| 17 Nov 2014 06:55 PM |
| What types of scripts have this permission? Command Bar do, Scripts/LocalScripts probably don't, do plugins? |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2014 06:56 PM |
| The command bar is the only tool you can access with LocalUserSecurity. Plugins do not, to my knowledge. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Nov 2014 06:57 PM |
Anything other than regular scripts and local scripts (level 2). Plugins can use it since they are level 1 (IIRC).
|
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 17 Nov 2014 06:58 PM |
LocalUserSecurity - Anything other than identities 2 and 3 can use this. The item is local to whatever calls it either in effect or in the data that it uses. Plugins have an identity of 6.
http://wiki.roblox.com/index.php?title=Normal_Identities
You just asked this the other day. Why didn't you just test it? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Nov 2014 06:58 PM |
Here's what I just found: 'Plugin [is level] 1'
'Anything other than identities 2 and 3 can use this. The item is local to whatever calls it either in effect or in the data that it uses.'
http://wiki.roblox.com/index.php?title=Normal_Identities |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2014 06:59 PM |
I was incorrect.
The "Execute script" command in Studio, the command bar, the command line -script flag, and Plugins can access things with the LocalUserSecurity context. Scripts and LocalScripts cannot access LocalUserSecurity.
Source: http://wiki.roblox.com/index.php?title=Security_Context |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Nov 2014 07:00 PM |
According to anaminus, it works differently.
http://wiki.roblox.com/index.php?title=User:Anaminus/Identity |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 17 Nov 2014 07:01 PM |
@cntkillme I see that but I just called printidentity() in a plugin and got "Current identity is 6"
if you wanted to see but too lazy to make: http://www.roblox.com/Test-item?id=187368583 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Nov 2014 07:02 PM |
Yup, also anaminus said plugins have an identity of 6. So they should change that, but regardless LocalUserSecurity should work with 1 and with 6 |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2014 07:02 PM |
| The very fact that 2 wiki pages show different info, and that cntkillme and someone else have different answers, prove my confusion here. Help is very much appreciated, I did not want to have to make a plugin specifically for testing this, I figured GD (Game Design :D) might now this pretty quickly. Maybe I started a debate... |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 17 Nov 2014 07:03 PM |
| Yeah, and hey, not a bad discussion for the new merge. |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2014 07:03 PM |
| So you guys agree that LocalUserSecurity should indeed work in a plugin? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Nov 2014 07:04 PM |
Yup it should work. Plugins seem to take on an identity of 6, yet the outdated information page says 1. But 1 and 6 are both considered under the category "LocalUserSecurity" |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2014 07:05 PM |
| Plugin identity change is currently awaiting review. |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 17 Nov 2014 07:05 PM |
| Yes, the wiki said it'll go with anything but two or three. The wiki says plugins have one or six, probably six because of the test I did, not that it matters for your purposes. |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2014 07:06 PM |
Awesome, so just to be clear things like
game:GetService("TestService"):DoCommand("Screenshot")
should also work? That's LocalUserSecurity right? |
|
|
| Report Abuse |
|
|
|
| 17 Nov 2014 07:11 PM |
| It is. Plugins should be able to use TestService::DoCommand. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2014 12:42 PM |
Sorry for the bump of the old thread, but I finally got around to doing something with it, I tried this:
toolbar = plugin:CreateToolbar("Take a screenshot!") toolbarbutton = toolbar:CreateButton("Pic!", "Take a picture!", "")
local TS = game:GetService("TestService")
toolbarbutton.Click:connect(function() TS:DoCommand("Screenshot") end)
and it came out
- An error occurred - Script 'Plugin_198862186.Take a Screenshot', Line 7 - Stack End - Disconnected event because of exception
What on earth happened? |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2014 12:44 PM |
To see for yourself you can grab the plugin that I'm using for testing here:
http://www.roblox.com/Take-a-Screenshot-item?id=198862186 |
|
|
| Report Abuse |
|
|
| |
|