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 » Scripters
Home Search
 

Re: Table Question

Previous Thread :: Next Thread 
SurfaceLight is not online. SurfaceLight
Joined: 06 Apr 2014
Total Posts: 7574
27 Jun 2015 05:58 PM
Would this work?

Sounds = {207012155}

sound = game.Workspace.Sound

script.Parent.MouseButton1Down:connect(function()
game.Workspace.Sound:Stop()
wait(0.1)
sound.SoundId = "rbxassetid://''"..Sounds[1]..""
sound:Play()
wait(0.01)
end)

I stole YOUR siggy!
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
27 Jun 2015 05:59 PM
Why don't you try it out.
Report Abuse
Xsitsu is online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
27 Jun 2015 06:00 PM
The reading from the table part would work, but I think you messed up your concatenation a little bit there.
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
27 Jun 2015 06:00 PM
..""


WHY DOES EVERYBODY DO THIS? You don't need to add a blank string at the end.
Report Abuse
SurfaceLight is not online. SurfaceLight
Joined: 06 Apr 2014
Total Posts: 7574
27 Jun 2015 06:01 PM
Nope, doesn't work, something about the wrong format.

I stole YOUR siggy!
Report Abuse
SurfaceLight is not online. SurfaceLight
Joined: 06 Apr 2014
Total Posts: 7574
27 Jun 2015 06:01 PM
@Novus

You happy?

Sounds = {207012155}

sound = game.Workspace.Sound

script.Parent.MouseButton1Down:connect(function()
game.Workspace.Sound:Stop()
wait(0.1)
sound.SoundId = "rbxassetid://''"..Sounds[1]
sound:Play()
end)

I stole YOUR siggy!
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
27 Jun 2015 06:03 PM
Yes,

"rbxassetid://" .. Sounds[1]

You added '' which would cause it to not work.
Report Abuse
SurfaceLight is not online. SurfaceLight
Joined: 06 Apr 2014
Total Posts: 7574
27 Jun 2015 06:04 PM
Okay thanks, my master script will now be able to work now that I figured out how to use the table!

MUAHAHAHA

I stole YOUR siggy!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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