ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 01:23 PM |
local Admins = {"ywis","Player"}
local Players = game:GetService("Players") local Maps = game:GetService("ServerStorage").Maps:GetChildren() local CurrentMap
local Commands = { Load = function(str) for i,v in next,Maps do if str and v:lower():match("^"..str:lower()) then if CurrentMap then CurrentMap:Destroy() end local clone = v:Clone() CurrentMap = clone clone.Parent = workspace end end end, Remove = function(str) if CurrentMap then CurrentMap:Destroy() end end }
Players.PlayerAdded:connect(function(plr) for i,v in next,Admins do if v:lower() == plr.Name:lower() then plr.Chatted:connect(function(msg) for i,v in next,Commands do if msg:lower():match("^:"..i:lower()) then v(msg:match("^:"..i:lower().."%s(.+)")) end end end) end end end)
--[[ Commands: :Load [map] :Remove ]]
I want it to load maps based on the commands.
ywis | commander of sf |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
| |
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 01:26 PM |
This is made by giganticguilian :/
ywis | commander of sf |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 27 Apr 2015 01:27 PM |
He sucks -_-
Lol jk it should work after skimming thru it |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 01:28 PM |
Dark I don't know what I'm doing wrong, I got the maps as in the serverstorage,
where should I put this script?
ywis | commander of sf |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 27 Apr 2015 01:30 PM |
ServerScript in workspace...
Um if there is any bugs(Too lazy to check), check the console log |
|
|
| Report Abuse |
|
|
xxhero
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 445 |
|
| |
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 01:31 PM |
should this be a normal script or a local script?
ywis | commander of sf |
|
|
| Report Abuse |
|
|
Jradi
|
  |
| Joined: 15 Aug 2012 |
| Total Posts: 10015 |
|
|
| 27 Apr 2015 01:31 PM |
Gigantic is the bomb dude
If anything, he is better than prag.
[ Join Blood Dominion: http://www.roblox.com/My/Groups.aspx?gid=1254658 ] |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 27 Apr 2015 01:33 PM |
| In Advanced Objects, a server script is just labelled "Script". |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 01:33 PM |
aghhh i can't seem to load anything!
ywis | commander of sf |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 01:35 PM |
This is what I've done,
1. put the script in Workspace
2. put the folder called "Maps" into Server Storage
3. used the command :Load pine (pine is a model in the folder "Maps")
still doesn't load.
ywis | commander of sf |
|
|
| Report Abuse |
|
|
xxhero
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 445 |
|
|
| 27 Apr 2015 01:36 PM |
| Why don't you ask Devoi? He's in your primary clan VOID. |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 01:58 PM |
xxhero what are you doing
ywis | commander of sf |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 02:06 PM |
if you hired gig i hope there was a refund policy lmao
Phiropy Is Truly Amazing, He's The True #1.. |
|
|
| Report Abuse |
|
|
xxhero
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 445 |
|
| |
|
|
| 27 Apr 2015 02:08 PM |
| prag is probably just as good @jradi |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 02:22 PM |
local Admins = {"ywis","Player"}
local Players = game:GetService("Players") local Maps = game:GetService("ServerStorage"):WaitForChild("Maps") local CurrentMap
local Commands = { ["Load"] = function(str) for index, child in pairs(Maps:GetChildren()) do if str:lower() == child.Name:lower() then if CurrentMap then CurrentMap:Destroy() end local clone = child:Clone() CurrentMap = clone clone.Parent = workspace end end end, Remove = function(str) if CurrentMap then CurrentMap:Destroy() end end }
Players.PlayerAdded:connect(function(plr) for i,v in next, Admins do if v:lower() == plr.Name:lower() then plr.Chatted:connect(function(msg) for i,v in next, Commands do if msg:lower():match("^:"..i:lower()) then v(msg:match("^:"..i:lower().."%s(.+)")) end end end) end end end) |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 02:27 PM |
xxhero
no i mean what's this about asking devoi do you really think he has time to look at my message
ywis | commander of sf |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 02:28 PM |
| yes you're welcome too deadadventure |
|
|
| Report Abuse |
|
|
R5P
|
  |
| Joined: 30 Jul 2013 |
| Total Posts: 5187 |
|
| |
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 02:34 PM |
prag i gotta see if the script works but THANKS YOU SO MUCHS LIKE OH MY GWERD
ywis | commander of sf |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2015 02:38 PM |
wrong subforum btw but next time post it on scripters or scriptinghelpers.org |
|
|
| Report Abuse |
|
|
ywis
|
  |
| Joined: 08 Aug 2014 |
| Total Posts: 12931 |
|
|
| 27 Apr 2015 02:44 PM |
duel scripters is dead lol
ywis | commander of sf |
|
|
| Report Abuse |
|
|
Tatsunabi
|
  |
| Joined: 02 May 2014 |
| Total Posts: 735 |
|
|
| 27 Apr 2015 02:51 PM |
| Line 4 local CurrentMap is wrong. It should be local CurrentMap = nil. |
|
|
| Report Abuse |
|
|