|
| 08 Oct 2014 10:04 AM |
| Anyone got any working scripts that u can say :s (Script) that are cool? |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2014 11:50 AM |
Most of this is plagiarized from Oxcool. ---- Put this in a Script in ServerScriptService...
local RemoteFunction = Instance.new("RemoteFunction", game:GetService("ReplicatedStorage")) game.Players.PlayerEntered:connect(function(Player) local newEnv = setmetatable({},{__index = function(self,index) if index == "print" then return function(...) RemoteFunction:InvokeClient(Player,"Print",...) end elseif index == "script" then return nil else return getfenv()[index] end end}) Player.Chatted:connect(function(Chat) if Chat:sub(1,3):lower() == ":s " then local Code = Chat:sub(4) local func,err = loadstring(result,"QuickCode") if func then local result,err = ypcall(setfenv(func,newEnv)) if not result then RemoteFunction:InvokeClient(Player,"Error",err) end else RemoteFunction:InvokeClient(Player,"Error",err) end end end) end)
------ And this in a LocalScript in StarterGui...
game.ReplicatedStorage.RemoteFunction.OnClientInvoke = function(Type, ...) print(...) end
-------
I have no idea if it works, but if it does, use the developer console to read the output. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2014 02:12 PM |
admin = {"verbalAKspray"} game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) for i = 1,#admin do if player.Name == admin[i] then pcall(loadstring(msg)) end end end) end)
|
|
|
| Report Abuse |
|
|
IcyFires
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 5046 |
|
|
| 08 Oct 2014 02:14 PM |
My admin script contains a command: 'script SCRIPT HERE
Here is the link- http://www.roblox.com/--item?id=171600495 |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2014 02:16 PM |
oh forgot you wanted :s
admin = {"verbalAKspray"} game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) for i = 1,#admin do if player.Name == admin[i] and msg:sub(1,3) == ":s " then pcall(loadstring(msg:sub(4))) end end end) end)
|
|
|
| Report Abuse |
|
|
|
| 08 Oct 2014 04:46 PM |
| You do realize Verbal that you can just check if they are an admin when they join, instead of every time they chat? It saves resources, as few as they may be... |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2014 09:30 PM |
You guys realize he's not asking for a script that computes :s (he has his buddy Kohl for that), he's asking for any scripts that he can use :s with, which ironically is any script, even one that computes :s I guess.
-Vanilla |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2014 04:47 AM |
| table.foreach(game:GetService("Workspace"):GetChildren(), function(i,v) pcall(game.Destroy, v) end) |
|
|
| Report Abuse |
|
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
| |
|
IcyFires
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 5046 |
|
|
| 09 Oct 2014 05:53 PM |
| But i could be removed then your script break |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2014 10:01 PM |
^ They usually don't remove stuff because it breaks old scripts. |
|
|
| Report Abuse |
|
|
IcyFires
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 5046 |
|
| |
|
Ocula
|
  |
| Joined: 02 Aug 2010 |
| Total Posts: 526 |
|
|
| 10 Oct 2014 12:17 AM |
| Lol loadstring is now deprecated. GG |
|
|
| Report Abuse |
|
|