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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: wat do?

Previous Thread :: Next Thread 
yankeejr is not online. 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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
06 Jun 2014 08:38 PM
bump
Report Abuse
L0cky2013 is not online. L0cky2013
Joined: 30 Jul 2012
Total Posts: 1446
06 Jun 2014 08:38 PM
lrn2preload
Report Abuse
EgoMoose is not online. 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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
06 Jun 2014 08:40 PM
lrn2help4once
Report Abuse
Viscoelastic is not online. Viscoelastic
Joined: 04 May 2012
Total Posts: 269
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 is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
06 Jun 2014 08:42 PM
umm. what should it be?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
06 Jun 2014 08:43 PM
doesnt work D:
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
06 Jun 2014 08:47 PM
bump
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