2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 09:14 AM |
if (string.find(msg, string.lower("clear:"))) then local w=game.Workspace:GetChildren() for i=1,#w do if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~="TinySB") and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then if w[i].className == "Script" then w[i].Disabled = true end w[i]:Remove() end end
How do I make it so that that command (^^^^) works for me? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 09:15 AM |
| Works for you only, or just works? |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
| |
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
| |
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
| |
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 09:40 AM |
@Mario,
What was the point in that? Asking me a question then totally ignoring the thread afterwards. :C |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 09:48 AM |
local admin = game.Players.2WOOF2 function chat(msg) if (string.find(msg, string.lower("clear:"))) then local w=game.Workspace:GetChildren() for i=1,#w do if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~="TinySB") and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then if w[i].className == "Script" then w[i].Disabled = true end w[i]:Remove() end end admin.Chatted:connect(chat) |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 09:48 AM |
| I always thought SH was nicer than this. :c |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 09:49 AM |
@Damin,
Thank you!!! :D
I'll test it out now, but even if it doesn't work, THANK YOU! :D |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 09:51 AM |
Your welcome. :D First time being congrated... |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
| |
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
| |
|
|
| 31 Jul 2011 09:55 AM |
You need to put it in like this:
local admin = game.Players.2WOOF2 --You need to put them in like this. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 09:55 AM |
--And then like this:
function chat(msg)--NO SPACE HERE! |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
| |
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 10:01 AM |
I'm not very good with scripting speak, and what you basically said came up to me like this:
put it like this then this.
And I ... don't understand what that means? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 10:02 AM |
--TYPE IN: local admin = game.Players.2WOOF2 --Frist line^ --TYPE IN FOR SECOND LINE AFTER YOU ENTERED THE FIRST ONE INTO THE GAME:function chat(msg) --Same as second line just third line: if (string.find(msg, string.lower("clear:"))) then local w=game.Workspace:GetChildren() for i=1,#w do if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~="TinySB") and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then if w[i].className == "Script" then w[i].Disabled = true end w[i]:Remove() end end --Forth line in ending: admin.Chatted:connect(chat) |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 10:04 AM |
Idk about you guys.
Game.Players.Chatted:connect(function(msg) if msg.Name ~= "2WOOF2" then return end --Might need another parent. if (string.find(msg, string.lower("clear:"))) then local w=game.Workspace:GetChildren() for i=1,#w do if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~="TinySB") and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then if w[i].className == "Script" then w[i].Disabled = true end w[i]:Remove() end end) |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 10:08 AM |
@Da,
Doesn't work.
@Mario,
Neither does that.. :/ |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 10:09 AM |
Not our problem then.
Something else in the script must be broke. |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 10:17 AM |
Oh, lol... I missed part of the script.. :/ Full script + Part of Mario's script:
Game.Players.Chatted:connect(function(msg) if msg.Name ~= "THEBobMcBobbingston" then return end --Might need another parent. if (string.find(msg, string.lower("clear:"))) then local w=game.Workspace:GetChildren() for i=1,#w do if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~="TinySB") and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then if w[i].className == "Script" then w[i].Disabled = true end w[i]:Remove() end end local Base=Instance.new("Part",game.Workspace) Base.Name="Base" Base.Size=Vector3.new(1000,1,1000) Base.BrickColor=BrickColor.new("Earth green") Base.Anchored=true Base.Locked=true Base.TopSurface="Universal" Base.CFrame=CFrame.new(Vector3.new(0,0,0)) local Spawn=Instance.new("SpawnLocation",game.Workspace) Spawn.Name="SpawnLocation" Spawn.Size=Vector3.new(6,1,6) Spawn.Transparency=1 Spawn.CanCollide=false Spawn.Anchored=true Spawn.Locked=true Spawn.CFrame=CFrame.new(Vector3.new(0,1,0)) end |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 10:18 AM |
Game.Players.Chatted:connect(function(msg) if msg.Name ~= "THEBobMcBobbingston" then return end --Might need another parent. if (string.find(msg, string.lower("clear:"))) then local w=game.Workspace:GetChildren() for i=1,#w do if (game.Players:GetPlayerFromCharacter(w[i]))==nil and (w[i].Name~="TinySB") and (w[i]~=game.Workspace.CurrentCamera) and (w[i]~=script) then if w[i].className == "Script" then w[i].Disabled = true end w[i]:Remove() end end local Base=Instance.new("Part",game.Workspace) Base.Name="Base" Base.Size=Vector3.new(1000,1,1000) Base.BrickColor=BrickColor.new("Earth green") Base.Anchored=true Base.Locked=true Base.TopSurface="Universal" Base.CFrame=CFrame.new(Vector3.new(0,0,0)) local Spawn=Instance.new("SpawnLocation",game.Workspace) Spawn.Name="SpawnLocation" Spawn.Size=Vector3.new(6,1,6) Spawn.Transparency=1 Spawn.CanCollide=false Spawn.Anchored=true Spawn.Locked=true Spawn.CFrame=CFrame.new(Vector3.new(0,1,0)) end) |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 10:20 AM |
@Mario,
It still doesn't work.... Why does everything always BLOX up for me? :/ |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2011 10:20 AM |
function chat(message, player) if (message:sub(1, 6) == "clear:" )and (player.Name == "2WOOF2") then local w = game.Workspace:GetChildren() for i = 1, #w do if (game.Players:GetPlayerFromCharacter(w[i]) == nil) and (w[i].Name ~= "TinySB") and (w[i] ~= game.Workspace.CurrentCamera) and (w[i] ~= script) then -- Script? I hope you have defined that elsewhere. if w[i].ClassName == "Script" then w[i].Disabled = true end w[i]:Remove() end end end end
function add(plr) plr.Chatted:connect(function() chat(message, plr) end) end
game.Players.PlayerAdded:connect(add) |
|
|
| Report Abuse |
|
|
2WOOF2
|
  |
| Joined: 07 Aug 2009 |
| Total Posts: 3444 |
|
|
| 31 Jul 2011 10:26 AM |
@Raven,
Well, it's kind of taken from a Orb script, but I don't believe it's "defined" anywhere in the orb script either.
Plus I think you made that before I posted about the extra part of the script :/ |
|
|
| Report Abuse |
|
|