yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 06 Jun 2014 08:36 PM |
-- sound wont play and image wont change...
local AssetBase = "http://www.roblox.com/asset?id="
open = false script.Parent.MouseButton1Click:connect(function() if open == false then open = true
script.math.random:Play(1-100) script.Parent.Image = AssetBase.."160258660"
elseif open == true then open = false
script.Parent.Sound:Pause() script.Parent.Image = AssetBase.."160258645"
end end)
|
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
|
EgoMoose
|
  |
| Joined: 04 Feb 2009 |
| Total Posts: 2896 |
|
|
| 06 Jun 2014 08:40 PM |
What is this???
script.math.random:Play(1-100) |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 06 Jun 2014 08:42 PM |
script.math.random:Play(1-100) This line is incorrect. According to wiki.roblox.com,the only time it takes an argument is when you are using it for an animation. This is sound right?
It would be wrong even if it was an animation, as you have to provide all three arguments.(You provided one)
script.math.random <-- are you messing with me intentionally?
Try this: script.math.random:Play() |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|