Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Music Will play But it wont play Fully.. Whats the Problem?

Asked by 11 years ago

Ok I made this script and the music wont play fully.. It just moves on to the next one. Whats the problem.. Heres the script

01gw=game.Workspace
02 
03function message(text,time)
04    local oldmsg=gw:FindFirstChild("Hint")
05    if oldmsg then
06        oldmsg.Parent=nil
07    end
08    local spacenumber=time*120
09    local msg=Instance.new("Hint")
10    msg.Parent=gw
11 
12 
13    msg.Text=text
14    wait(1)
15    msg.Parent=nil
View all 32 lines...
1    end
2end

end

2 answers

Log in to vote
1
Answered by
Dummiez 360 Moderation Voter
11 years ago

Not sure, try to see if this works.

01print('Music player started!')
02 
03local ws = Workspace
04local last1 = ""
05local last2 = ""
06 
07function dispHint(text, len)
08    print("Display hint.")
09    local ph = ws:GetChildren()
10 
11    for i = 1, #ph do
12        if ph[i]:IsA("Hint") then ph:Destroy()
13    end end
14 
15    local holding = (120 * len)
View all 39 lines...
0
Thanks Worked :D MicrobeBlox 5 — 11y
0
Make sure to accept as an answer. :P Dummiez 360 — 11y
Ad
Log in to vote
1
Answered by 11 years ago

1 music? Then put the script in the music.

1while true do
2script.Parent:Play()
3end

Answer this question