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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Can somebody help me with this?

Previous Thread :: Next Thread 
2WOOF2 is not online. 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
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
31 Jul 2011 09:15 AM
Works for you only, or just works?
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
31 Jul 2011 09:17 AM
@Mario,

Works for me only.
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
31 Jul 2011 09:21 AM
Can somebody help? :/
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
31 Jul 2011 09:35 AM
Please?
Report Abuse
2WOOF2 is not online. 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
Damin8000IsBanned is not online. Damin8000IsBanned
Joined: 29 Dec 2010
Total Posts: 84
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 is not online. 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 is not online. 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
Damin8000IsBanned is not online. Damin8000IsBanned
Joined: 29 Dec 2010
Total Posts: 84
31 Jul 2011 09:51 AM
Your welcome. :D
First time being congrated...
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
31 Jul 2011 09:52 AM
@Damin,

Doesn't wory :o
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
31 Jul 2011 09:53 AM
work* D:
Report Abuse
Damin8000IsBanned is not online. Damin8000IsBanned
Joined: 29 Dec 2010
Total Posts: 84
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
Damin8000IsBanned is not online. Damin8000IsBanned
Joined: 29 Dec 2010
Total Posts: 84
31 Jul 2011 09:55 AM
--And then like this:

function chat(msg)--NO SPACE HERE!
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
31 Jul 2011 09:58 AM
...
What? ._.
Report Abuse
2WOOF2 is not online. 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
Damin8000IsBanned is not online. Damin8000IsBanned
Joined: 29 Dec 2010
Total Posts: 84
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
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
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 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
31 Jul 2011 10:08 AM
@Da,

Doesn't work.

@Mario,

Neither does that.. :/
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
31 Jul 2011 10:09 AM
Not our problem then.

Something else in the script must be broke.
Report Abuse
2WOOF2 is not online. 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
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
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 is not online. 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
Ravenshield is not online. Ravenshield
Joined: 21 Nov 2007
Total Posts: 4143
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 is not online. 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
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