generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: LocalUserSecurity

Previous Thread :: Next Thread 
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
MemoryAddress is not online. MemoryAddress
Joined: 20 Apr 2013
Total Posts: 1297
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 is not online. 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 is not online. 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 is not online. 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
MemoryAddress is not online. MemoryAddress
Joined: 20 Apr 2013
Total Posts: 1297
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 is not online. 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 is not online. 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 is not online. 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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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 is not online. 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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
17 Nov 2014 07:03 PM
So you guys agree that LocalUserSecurity should indeed work in a plugin?
Report Abuse
cntkillme is not online. 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
MemoryAddress is not online. MemoryAddress
Joined: 20 Apr 2013
Total Posts: 1297
17 Nov 2014 07:05 PM
Plugin identity change is currently awaiting review.
Report Abuse
lordrambo is not online. 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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
MemoryAddress is not online. MemoryAddress
Joined: 20 Apr 2013
Total Posts: 1297
17 Nov 2014 07:11 PM
It is. Plugins should be able to use TestService::DoCommand.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
31 Dec 2014 05:00 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image