This is not the full script (Only the part that isnot working) So my problem is when a Event (Disaster start there will be coming a Gui on the players screen Ex. Spoke Event is gone start..) << Doesnt matter but the Gui doesnot come on the screen and even the sound doesnt (EventsGui is into starterpack and Sound is in MuteMusic Gui > dataEE "Its a frame" > sound "In the frame is the sound") why does this not working? Don't mind the while true do i made it for put this part of ther master script to work. Error message: 17:28:14.014 - Workspace.Test:8: attempt to index local 'player' (a nil value) 17:28:14.014 - Stack Begin 17:28:14.015 - Script 'Workspace.Test', Line 8 17:28:14.015 - Stack End
local EvGui = game.Players:GetChildren('Player')
local Sounds = game.Players:GetChildren('Player')
game.Players.PlayerAdded:wait()
while true do
wait (5)
EvGui.PlayerGui.EventsGui.EventA.visible = true
SoundIdsA = {163211519}
Sounds.PlayerGui.MuteMusic.dataEE.Sound.SoundId = "rbxassetid://"..SoundIdsA
wait (5)
EvGui.PlayerGui.EventsGui.EventA.visible = false
SoundIdsB = {154630272}
Sounds.PlayerGui.MuteMusic.dataEE.Sound.SoundId = "rbxassetid://"..SoundIdsB
wait (5)
EvGui.PlayerGui.EventsGui.EventB.visibile = true
SoundIdsA = {163211519}
Sounds.PlayerGui.MuteMusic.dataEE.Sound.SoundId = "rbxassetid://"..SoundIdsA
wait (5)
SoundIdsB = {154630272}
Sounds.PlayerGui.MuteMusic.dataEE.Sound.SoundId = "rbxassetid://"..SoundIdsB
EvGui.PlayerGui.EventsGui.EventB.visible = false
end
