Local script not accessing items in Workspace

Recently I have been having issues trying to access a boombox via a local script. Finding a boombox with a server script works fine, however with my 2 local scripts that is not the case. As this is an inventory system and there will be different named boomboxes I am using :FindFirstChildWhichIsA(‘Part’) to find the boombox.

Example Local Script
local boombox = character:WaitForChild("Boomboxes").Equipped:FindFirstChildWhichIsA('Part')

local sound = boombox.Sound

Error message:


Players.YT_GamingDan.PlayerGui.ScreenGui.GuiButtonFrame.CameraBoomboxReaction:17: attempt to index nil with ‘Sound’

I’m not too sure why it isn’t accessing the boombox, does anyone have any ideas?

Just found the fix to this issue. I had a remote event indicate a sound was being played then I found the current equipped boombox inside that onClientEvent function.