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 » Scripting Helpers
Home Search
 

Re: About .Selection

Previous Thread :: Next Thread 
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 01:42 AM
I've got a few questions. I can't test them on my own so I ask here.

1st A: Does it also work when you press the + on any directory (like Workspace)?

1st B: How exactly would you make the selection check if ANY of the objects has been selected, if the above won't work?

2nd: Can oyu achieve the player who selected somehow?

Well that's it already.
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
29 Jun 2012 01:58 AM
1b
game.Seclection.SelectionChanged:connect(function()

Check my spelling.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 02:01 AM
Ok, thx for that already.

Now the other question, is it possible to get the "Selectioner" somehow?
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
29 Jun 2012 02:03 AM
Use a LocalScript.

Haters gonn' hate.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 02:04 AM
Somehow these scripts never work properly for me but I'll give it once again a try.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
29 Jun 2012 02:08 AM
Also, just for your knowledge SelectionChanged will fire if an exploiter even clicks on the Explorer menu, etc. So yes, if they click the plus next to Workspace or something, it will fire your function.

Haters gonn' hate.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 02:10 AM
YOY <---Looks like a smile or something.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 02:16 AM
3rd: Is it possible to deselect the selection? For example just adding a "false"?
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
29 Jun 2012 02:17 AM
I don't understand your question...

Haters gonn' hate.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 02:21 AM
Actually when something is getting selected, being able to deselect the stuff, which is selected.

For example something like this:

Selected = false --"Selected" will be the path to the selected objects.
Report Abuse
zzextrazz is not online. zzextrazz
Joined: 26 Jul 2010
Total Posts: 61
29 Jun 2012 02:25 AM
No, don't try to 'deselect', just crash them. If you just ban them they can still do stuff.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 02:29 AM
Euh... Sry? Deselect not = ban.

If it will automatically deselect the selected objects, they won't be able to do anything because they can't even open anything (it should).

If you have an idea to just crash THAT player then I would be glad about it but I don't want to crash the whole game.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
29 Jun 2012 02:35 AM
In a localscript:

game.Selection.SelectionChanged:connect(function()
   Instance.new("ManualSurfaceJointInstance") -- [1]
end)

*[1] Somebody will probably give me crap for crashing this way, but I prefer it as it's a much cleaner crash than lagging the client. You can alternatively use `while true do end` to eat up all the memory, and there's many more possible ways to crash as well. Above is just how I personally prefer it.


Crashing from within a localscript will crash only the client, so your server runs on as if nothing ever happened.

Haters gonn' hate.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
29 Jun 2012 02:37 AM
ROFL, didn't even know that.

Ya Ik the while true do end variant. But what do you mean by "cleaner crash"?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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