|
| 21 May 2012 06:58 PM |
I made this script and I have no idea why it isn't working. See if you can help:
function onClicked() game.Workspace.Variables.BrickColor = BrickColor.new("Really red") game.Workspace.Waiting Commands.Name = "So you want to learn about Variables?" wait(4) game.Workspace.Waiting Commands.Name = "Variables are letters or anything that represents a number." wait(5) game.Workspace.Waiting Commands.Name = "Variables are used when there is an unknown value in an equation" wait(6) game.Workspace.Waiting Commands.Name = "Let's say there are N kids in a classroom. If one leaves there are 15 left. How many kids are there if a kid doesn't leave?" wait(10) game.Workspace.Waiting Commands.Name = "Well N is the variable and our goal is to find out what N is." wait(7) game.Workspace.Waiting Commands.Name = "So the problem looks like N-1=15. What is N? To find N you must do the inverse operation they used to get 15." wait(10) game.Workspace.Waiting Commands.Name = "If they used subtraction you would have to use addition. You would add 1 to 15. Which is 16." wait(10) game.Workspace.Waiting Commands.Name = "So now we know that N=16." wait(4) game.Workspace.Waiting Commands.Name = "If you would like to learn about advanced variable uses, click on the button that is labeled Advanced Variable Uses." wait(10) game.Workspace.Waiting Commands.Name = "Waiting Command" game.Workspace.Variables.BrickColor = BrickColor.new("Camo") end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 21 May 2012 06:59 PM |
Is "Variables" a brick?
Also:
game.Workspace["Waiting Commands"].Name
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 21 May 2012 07:03 PM |
Plus if you are changin the names of the model, I don't think you could keep calling it "Waiting Commands".
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 21 May 2012 07:08 PM |
| Variables is a model and so is Waiting Commands. And good thinking with the name change thing. |
|
|
| Report Abuse |
|
|
|
| 21 May 2012 07:08 PM |
| Can you tell us what the Output says? |
|
|
| Report Abuse |
|
|
|
| 21 May 2012 07:13 PM |
BrickColor is not a property of a model.
† KMXD † |
|
|
| Report Abuse |
|
|