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: why wont this work?

Previous Thread :: Next Thread 
Dimontius is not online. Dimontius
Joined: 28 May 2013
Total Posts: 1478
07 Mar 2015 09:18 AM
it works up to song 2, and once that finishes, song 3 doesnt play yet i've preloaded it and made sure im using the asset id and not the id
game.Players.playerAdded:connect(function(pr)
pr.CharacterAdded:connect(function(chr)
chr.torso.Anchored=true;
end)end);

Assets = {187886447, 168611958, 186565261, 183365358, 179872014, 168614090, 168613482, 168613270}

for _, asset in ipairs(Assets) do
game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. asset)
end

core = game.Workspace.Core

aud1 = core.Audio1
aud2 = core.Audio2
aud3 = core.Audio3
aud4 = core.Audio4
aud5 = core.Audio5
aud6 = core.Audio6
aud7 = core.Audio7
aud8 = core.Audio8

while true do
wait(0)
aud1:Play()
wait(120)
aud1:Stop()
aud2:Play()
wait(120)
aud2:Stop()
aud3:Play()
wait(120)
aud3:Stop()
aud4:Play()
wait(120)
aud4:Stop()
aud5:Play()
wait(120)
aud5:Stop()
aud6:Play()
wait(120)
aud6:Stop()
aud7:Play()
wait(120)
aud7:Stop()
aud8:Play()
wait(120)
aud8:Stop()

end
Report Abuse
Dimontius is not online. Dimontius
Joined: 28 May 2013
Total Posts: 1478
07 Mar 2015 09:19 AM
also, when I click on audio4+ it crashes my roblox studio
Report Abuse
AnimeWiki is not online. AnimeWiki
Joined: 26 Oct 2014
Total Posts: 460
07 Mar 2015 09:28 AM
you want to play music for players right ? if yes then i have good solution for u
Report Abuse
iHurricaneOaks is not online. iHurricaneOaks
Joined: 12 Dec 2012
Total Posts: 233
07 Mar 2015 09:28 AM
i Thought you had to spell out audio all the way? All you put was aud.
Report Abuse
Dimontius is not online. Dimontius
Joined: 28 May 2013
Total Posts: 1478
07 Mar 2015 09:29 AM
yeah.. look at the variables

._.
Report Abuse
AnimeWiki is not online. AnimeWiki
Joined: 26 Oct 2014
Total Posts: 460
07 Mar 2015 09:41 AM
-- put replicatedfirst

script.Parent:RemoveDefaultLoadingScreen()
player = game:GetService("Players").LocalPlayer
repeat wait() until player:FindFirstChild("PlayerGui") ~=nil
player:WaitForChild("PlayerGui")
game:GetService("Workspace"):WaitForChild("Camera")

assets = {187886447,168611958,186565261,183365358,179872014,168614090,168613482,168613270}

for k,v in ipairs(assets) do
game:GetService("ContentProvider"):Preload("rbxassetid://"..v)
end


local sc = Instance.new("ScreenGui", player.PlayerGui)
local tx = Instance.new("TextLabel")
tx.Parent = sc
tx.Text = "Loading"
tx.Size = UDim2.new(1,0,1,0)
tx.FontSize = Enum.FontSize.Size14

local count = 0

repeat wait(.3)
tx.Text = "Loading "..string.rep(".",count)
count = (count + 1)%4
wait(.3)
until game.ContentProvider.RequestQueueSize >= 0


sc:remove()

Report Abuse
Dimontius is not online. Dimontius
Joined: 28 May 2013
Total Posts: 1478
07 Mar 2015 09:53 AM
still wont work
Report Abuse
AnimeWiki is not online. AnimeWiki
Joined: 26 Oct 2014
Total Posts: 460
07 Mar 2015 10:01 AM
repeat wait() until game:GetService("Players").LocalPlayer.Character ~=nil
game:GetService("Players").Character:WaitForChild("Humanoid")

assets = {187886447,168611958,186565261,183365358,179872014,168614090,168613482,168613270}

local sound = Instance.new("Sound", script.Parent)
sound.SoundId = "rbxassetid://"..assets[math.random(1,#assets)]
sound:Play()


add this into playergui
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
07 Mar 2015 10:37 AM
while wait() do
for i = 1,8 do
aud[i]:Play();
wait(120);
aud[i]:Stop();
end
end
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