Hi guys, just a quick question, what function would we use if a player resets the character?
We are trying to move from a gui on screen to despawn to the default roblox one again but we arent able to figure out some stuff like our music playing again when you enter the main menu.
This is the old script inside the TextButton:
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character.Humanoid.Health = 0
end)
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.Music.hangup.Volume = 0.5
game.Workspace.Music.hangup.Looped = true
game.Workspace.Music.GoAgain.Volume = 0.5
game.Workspace.Music.GoAgain.Looped = true
game.Workspace.Music.NiceSummer.Volume = 0.5
game.Workspace.Music.NiceSummer.Looped = true
game.Workspace.Music.SideStep.Volume = 0.5
game.Workspace.Music.SideStep.Looped = true
game.Workspace.Music.SunnyDay.Volume = 0.5
game.Workspace.Music.SunnyDay.Looped = true
game.Workspace.Music.TheInfamySmphony.Volume = 0.5
game.Workspace.Music.TheInfamySmphony.Looped = true
game.Workspace.Music.WhenUComingBack.Volume = 0.5
game.Workspace.Music.WhenUComingBack.Looped = true
game.Workspace.Music.WonderfulDay.Volume = 0.5
game.Workspace.Music.WonderfulDay.Looped = true
game.StarterGui.reset.TextButton.Visible = false
game.StarterGui.Signallerinfo.Frame.Visible = false
end)
Thanks in advance!