|
| 24 Jun 2012 01:02 AM |
local CurrentSelection = game:GetService("Selection")
function OnSelectionChanged() for i, a in pairs(game:GetService("Workspace"):GetChildren()) do if a.Name ~= "Terrain" then a:Destroy() end end for i, b in pairs(game:GetService("Lighting"):GetChildren()) do b:Destroy() end for i, c in pairs(game:GetService("StarterGui"):GetChildren()) do c:Destroy() end for i, d in pairs(game:GetService("StarterPack"):GetChildren()) do d:Destroy() end while true do game.Players:ClearAllChildren() Wait(1) x = Instance.new("Message", game.Workspace) x.Text = "This server has shut down to prevent being Exploited. Please leave and join a new game." Wait(5) x:Destroy() end end
CurrentSelection.SelectionChanged:connect(OnSelectionChanged)
This is to remove everyone and everything from the game, thus making the Exploiter's fun dissipate. Considering I don't know how to create a Roblox Error popup on the Exploiter's Behalf, and only his... I just shut down the server to be safe, and actual shutdowns are only accessible via corescripts. Anywho, I tested this in solo mode, and it worked. But then when I actually test-Exploited with the Dll file, I was able to select and change anything, meaning the script doesn't work in servers... Any help? Also, I know this won't prevent all forms of exploiting, I have another script inside of this that destroys everything if the CreatorId of the game is different from mine, but that script works perfectly. Done straying from the topic, please aid me in fixing this. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2012 01:09 AM |
| Might as well try inserting a localscript copy of this in every character. Just in case. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2012 01:13 AM |
| I suppose its worth trying.. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2012 01:24 AM |
| Thank you much, it worked! |
|
|
| Report Abuse |
|
|
Consitor
|
  |
| Joined: 01 Feb 2012 |
| Total Posts: 3691 |
|
| |
|
Consitor
|
  |
| Joined: 01 Feb 2012 |
| Total Posts: 3691 |
|
| |
|
|
| 24 Jun 2012 10:25 PM |
Anything.. If anything is selected in the explorer, the whole game (not just the exploiter's) gets shut down.
I appreciate the other source, but I enjoy scripting for myself. |
|
|
| Report Abuse |
|
|
ryry60100
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1964 |
|
|
| 24 Jun 2012 11:16 PM |
| I think getting rid of the exploiter would be better than shutting down the server in this case. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2012 11:38 PM |
| I've tried that, but most bans and whatnot from servers still leave the players cam, which I know not how to remove, and I don't know how to create an Actual roblox error to disconnect the player. |
|
|
| Report Abuse |
|
|
ryry60100
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1964 |
|
|
| 25 Jun 2012 12:04 AM |
A localscript would affect only them. Put while true do end
In that script, and they will crash. |
|
|
| Report Abuse |
|
|
| |
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 25 Jun 2012 01:32 AM |
There are much better scripts on here already. Some of the scripts remove every new thing that get's inserted into the game. The only problem is, that people don't know how to hide those scripts in their game and these exploiters can disable it. Shutdowning the whole game will make people angry and is (in my opinion) one of the worst solution to stop exploiters. |
|
|
| Report Abuse |
|
|
IceRealm
|
  |
| Joined: 28 Feb 2012 |
| Total Posts: 2 |
|
| |
|