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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: If statements

Previous Thread :: Next Thread 
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
20 Dec 2013 11:41 PM
If a Script's name is w.Name = "Name" and if I used an if statement like this


if (msg == "stop") then
w:Remove()
end

would that work
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
20 Dec 2013 11:42 PM
[ Content Deleted ]
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
20 Dec 2013 11:42 PM
then why won't it work if it was a FloorWire

Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
20 Dec 2013 11:43 PM
[ Content Deleted ]
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
20 Dec 2013 11:46 PM
o okay lol
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
20 Dec 2013 11:47 PM
don't I need a connection line? (game.Players.LocalPlayer.Chatted:connect(function(troll) or something for 'if' statement commands
because its like a command
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
21 Dec 2013 12:16 AM
[ Content Deleted ]
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
21 Dec 2013 12:24 AM
local Player = game.Players.LocalPlayer
local Cmds={stop=function(msg) script:Destroy() end}

Player.Chatted:connect(function(msg)
for i,v in pairs(Cmds) do
if v.Message:sub(1,#i):lower()==i then
v(msg)
end
end
end)
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