#Music resets after death
125 messages · Page 1 of 1 (latest)
whats the problem sir
@sage stratus ?
ok like it starts from the beginning?
hm
where is the script currently?
okay
you should probably put the music playing part of the script in serverscriptservice
and make a script the detects what music is playing
and updates the gui
if you put the part of script that plays the music? in serverscriptservice?
hm
wait
put the script part
in
StarterPlayer > StarterPlayerScripts
local SoundService = game:GetService("SoundService")
local backgroundMusic = SoundService.BackgroundMusic
``` For reference
like the playing music part
of script
@sage stratus Make a local script in StarterPlayerScripts and do the music playing part of script
there
it should
Can you store all the sounds in sound service?
follow this
yeah
local and StarterPlayer > StarterPlayerScripts
yeah good
is it following order?
hm
give me a second
I have a 3rd idea
you can store the music inside the player
(game.Players.Playername)
local Music = game:GetService("ReplicatedStorage").MusicFolder:Clone()
Music.Parent = game:GetService("Players")
I think
and just put
music in replicated storage
for keeping
If you want to pause it when they die and resume when they respawn, you can hook up a listener for the characters death, pausing, and then resuming when the character is re-added
** You are now Level 14! **
truly isnt
nooooooooo
lier
imma buy them all
anyway
ill make the script rq for u lmk if it works
local MusicFolder = game:GetService("ReplicatedStorage").MusicFolder:Clone()
local CoolVibes = MusicFolder.CoolVibes
local NoMore = MusicFolder.NoMore
local SpookyChase = MusicFolder.SpookyChase
local Tomfoolery = MusicFolder.Tomfoolery
local TownTalk = MusicFolder.TownTalk
local WackyWeekend = MusicFolder.WackyWeekend
MusicFolder.Parent = game:GetService("Players")
while true do --Looping music
CoolVibes:Play()
CoolVibes.Ended:Wait(5)
NoMore:Play()
NoMore.Ended:Wait(5)
SpookyChase:Play()
SpookyChase.Ended:Wait(5)
Tomfoolery:Play()
Tomfoolery.Ended:Wait(5)
TownTalk:Play()
TownTalk.Ended:Wait(5)
WackyWeekend:Play()
WackyWeekend.Ended:Wait(5)
end
if im correct
try that
uh no
normal script in serverscriptservice
work?
no way my help actually worked
both ez
marked as solved
use local scripts for both
ok
ok
ok
u mean event
bc why not
it works dont it
why does benadyrl smell so weird
im going to bed gn and good luck
😴
💤
💤
im awake
i have to go in like an hour so
so u dont need help anymore
?
no no
i can help
just for an hour
the mute button
ok
What have you tried
@sage stratus
you can make animated gui using tween service
local music = blahblah where ever ur music is
script.Parent.MouseButton1Click:Connect(function()
if music.Volume == 0 then
music.Volume = 1
else
music.Volume = 0
end
end)
wdym
??
no
idk what u asking cuz im dumb
variables won't alter the music
declaring variables doesnt change characteristics if that is what ur asking until you do something with it
no
bc its u make it a local script
inside of ur mute button
uh idk
probably not
just declare all of them as variables
local music = blahblah where ever ur music is
local music2 = blahblah where ever ur music is
local music3 = blahblah where ever ur music is
script.Parent.MouseButton1Click:Connect(function()
if music.Volume or music2.Volume or music3.Volume == 0 then
music.Volume = 1
music2.Volume = 1
music3.Volume = 1
else
music.Volume = 0
music2.Volume = 0
music3.Volume = 0
end
end)
like that
i think
yeah
u can add player to the function
and add all the variables in the function
since ya know the music is stored in player for u
script.Parent.MouseButton1Click:Connect(function(player)
i think so
but idk test and see
did u declare all of them as variables
send full script
hm ok
so it can only mute the first song?
ok
u might have to do the if statement for each individual song
if music.Volume == 0 then
music.Volume = 1
else
music.Volume = 0
end
yeah
try this
local MuteButton = script.Parent
MuteButton.MouseButton1Up:Connect(function(player)
local MusicFolder = player:WaitForChild("MusicFolder")
local CoolVibes = MusicFolder.CoolVibes
local NoMore = MusicFolder.NoMore
local SpookyChase = MusicFolder.SpookyChase
local Tomfoolery = MusicFolder.Tomfoolery
local TownTalk = MusicFolder.TownTalk
local WackyWeekend = MusicFolder.WackyWeekend
if CoolVibes.Volume = 0 then
CoolVibes.Volume = 1
else
CoolVibes.Volume = 0
end
if NoMore.Volume = 0 then
NoMore.Volume = 1
else
NoMore.Volume = 0
end
if SpookyChase.Volume = 0 then
SpookyChase.Volume = 1
else
SpookyChase.Volume = 0
end
if Tomfoolery.Volume = 0 then
Tomfoolery.Volume = 1
else
Tomfoolery.Volume = 0
end
if TownTalk.Volume = 0 then
TownTalk.Volume = 1
else
TownTalk.Volume = 0
end
if WackyWeekend.Volume = 0 then
WackyWeekend.Volume = 1
else
WackyWeekend.Volume = 0
end
end)
i think
also
why you doing mousebutton1up
uh try my script first then try this
urs or mine

can u try mine too plz
oops
nvm
welp i gtg
bye have fun
Basketball game