Sound keeps playing after entering the game!

game:GetService("Players").LocalPlayer.CharacterAdded:Connect(__CHARACTER)
   __SOUNDHERE:Pause()
   __SOUNDHERE:Destroy()
end)

Another thing, since this a kindoff main menu that only appears when you join, you should parent the script to replicatedfirst and destroy it after it’s done.
Alternative snippet that meets your code standards.
musicstop.Completed:Connect(function() music:Destroy() end)

After I put it into replicatedfirst and added that snippet of code you provided me everything works fine except the loading screen will not appear anymore. Instead, it’s a black screen until I load.

script.Parent.play.MouseButton1Click:Connect(function()
	-- musicstop:Play()
	start:Play()
	start.Ended:Wait()
	ftween2:Play()
	musicstop.Completed:Connect(function() music:Destroy()
	wait(5)
	game.SoundService.AmbientReverb = Enum.ReverbType.UnderWater
	game.Lighting.MenuBlur.Enabled = true
	fade.BackgroundTransparency = 1
	script.Parent.Loading.Visible = true
	script.Parent.Title.Visible = false
	script.Parent.play.Visible = false
	script.Parent.credits.Visible = false
	script.Parent.settings.Visible = false
	music.Playing = false
	wait(10)
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
	game.SoundService.AmbientReverb = Enum.ReverbType.ParkingLot
	game.Lighting.MenuBlur.Enabled = false
	workspace.ambience.negativeambience:Resume()
	respawnevent:FireServer(game.Players.LocalPlayer)
	script.Parent:Destroy()
	end)
	end)

did i put everything correctly?

Just clone the gui and parent it to playergui. use WaitForChild though, objects don’t load before replicatedfirst.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.