local part1 = game.Workspace.oneMap.Portal.Portal
local sound1 = game:GetService("StarterPlayer").songTwo
local sound = game:GetService("StarterPlayer").songOne
part1.Touched:Connect(function(plr)
local character = game.Players:GetPlayerFromCharacter(plr.Parent)
local humanoid = plr.Parent:FindFirstChild("Humanoid")
if humanoid then
sound1:Play()
if sound.IsPlaying then
sound:Pause()
else
sound1:Play()
end
end
end)
I'm trying to make a speedrun game and make it to where every time a player touches the portal the music changes to something else. I want that to happen for the local player only. I have my local script in starterplayerscripts and my sounds in starterplayer.
