|
| 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 |
|
|
|
| 13 Nov 2010 09:20 PM |
| Should, if LUA (just to rage people) isn't case-sensitive. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|