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: Would this work?

Previous Thread :: Next Thread 
cheesety210 is not online. cheesety210
Joined: 04 Feb 2009
Total Posts: 2414
13 Nov 2010 09:09 PM
Scripts

T = game.Workspace.Part
function onTouched()
T.transparency = 0.5
Wait(0.1)
T.Cancollide = false
Wait(5)
T.transparency = 0
Wait(0.1)
T.Cancollide= true
T.Touched:connect(onTouched)





function onChatted(msg,speaker) 
if msg:lower() == "blue" then 
game.Workspace.Part.BrickColor=BrickColor.new(23) 
end 

if msg:lower() == "red" then 
game.Workspace.Part.BrickColor=BrickColor.new(41) 
end 

if msg:lower() == "black" then 
game.Workspace.Part.BrickColor=BrickColor.new(26) 
end 

if msg:lower() == "camo" then 
game.Workspace.Part.BrickColor=BrickColor.new(1021)
end 
end 
Report Abuse
SilverRaptor is not online. SilverRaptor
Joined: 16 Nov 2008
Total Posts: 2300
13 Nov 2010 09:20 PM
Should, if LUA (just to rage people) isn't case-sensitive.
Report Abuse
flyingleech is not online. flyingleech
Joined: 09 Oct 2008
Total Posts: 306
13 Nov 2010 09:22 PM
Yes, it would
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
13 Nov 2010 09:24 PM
Lua is VERY case-sensitive. Only acception is the first letter of most methods, for example:

findFirstChild
FindFirstChild

And also, the global variables for game and workspace.

game
Game
Workspace
workspace
game.workspace
Game.workspace
Game.Workspace
game.Workspace

otherwise, EVERYTHING IS CASE SENSITIVE.
Report Abuse
cheesety210 is not online. cheesety210
Joined: 04 Feb 2009
Total Posts: 2414
13 Nov 2010 09:43 PM
k
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