|
| 28 May 2013 06:36 PM |
That when the parent is clicked changes the decal on a brick labeled "Jumbotron"
Here is what I have so far :
function onClicked(playerWhoClicked) script.Parent.BrickColor = BrickColor.Random() end Model.Jumbotron.Decal.TextureID=http://www.roblox.com/asset/?id=2042191()
According to ROBLOX the last line is wrong. How do I fix it and how do I add more of those "decal change" lines in? |
|
|
| Report Abuse |
|
|
|
| 28 May 2013 06:38 PM |
| I figure that I am gonna have to put a loop in at the end also. |
|
|
| Report Abuse |
|
|
|
| 28 May 2013 06:39 PM |
function onClicked(playerWhoClicked) script.Parent.BrickColor = BrickColor.Random() Model.Jumbotron.Decal.TextureID=http://www.roblox.com/asset/?id=2042191--no () --What is Model? Define it? end--end here script.Parent.ClickDetector.MouseClick:connect(onClicked)--Only works if a ClickDetector is in the brick
--Make sure to read the comments. |
|
|
| Report Abuse |
|
|
keehl254
|
  |
| Joined: 08 Sep 2010 |
| Total Posts: 131 |
|
|
| 28 May 2013 06:43 PM |
I'm assuming the scripts parent is the part you want them to click...Insert a ClickDetector into the part you want them to click, and this should work for ya :3
function onClicked(playerWhoClicked) script.Parent.BrickColor = BrickColor.Random() Model.Jumbotron.Decal.TextureID=http://www.roblox.com/asset/?id=2042191() end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
keehl254
|
  |
| Joined: 08 Sep 2010 |
| Total Posts: 131 |
|
|
| 28 May 2013 06:44 PM |
| aww, posted in when there was no comments...Come back, and someelse already posted it :/ |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 May 2013 06:57 PM |
| it stil gives me the red line |
|
|
| Report Abuse |
|
|
|
| 28 May 2013 07:16 PM |
function onClicked(playerWhoClicked) script.Parent.BrickColor = BrickColor.Random() Model.Jumbotron.Decal.TextureID="http://www.roblox.com/asset/?id=2042191"--" " end script.Parent.ClickDetector.MouseClick:connect(onClicked)
|
|
|
| Report Abuse |
|
|