Oh! Can you send the entire script? It’s hard to tell what the issue is without more of the code, it seems like something’s yielding, or the Sound isn’t the right sound
local function playeradded(Player)
Player.CharacterAdded:Connect(function(Char)
Char.ChildAdded:Connect(function(Object)
if Object:IsA("Tool") then
if Object:WaitForChild("Handle"):FindFirstChildOfClass("Sound") then
local Sound = Object:WaitForChild("Handle"):FindFirstChildOfClass("Sound")
Sound:GetPropertChangedSignal("SoundId"):Connect(function()
print("sound changed but id idk")
if Sound.SoundId ~= "" then
print("sound changed but id here")
local MSG = Instance.new("TextLabel",ScreenUI:WaitForChild("AudioLogger"):WaitForChild("ScrollingFrame"))
local UIPadding = Instance.new("UIPadding")
--Properties:
MSG.Name = "message"
MSG.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
MSG.BackgroundTransparency = 1.000
MSG.BorderColor3 = Color3.fromRGB(30, 30, 30)
MSG.BorderSizePixel = 0
MSG.Size = UDim2.new(1, 0, 0, 0)
MSG.Font = Enum.Font.SourceSansSemibold
MSG.TextColor3 = Color3.fromRGB(255, 255, 255)
MSG.TextSize = 20.000
MSG.TextWrapped = true
MSG.TextXAlignment = Enum.TextXAlignment.Left
UIPadding.Parent = MSG
UIPadding.PaddingLeft = UDim.new(0.0500000007, 0)
UIPadding.PaddingRight = UDim.new(0.0500000007, 0)
MSG.Text = tostring(Sound.SoundId).." is logged! Song name "..game:GetService("MarketplaceService"):GetProductInfo(Sound.SoundId, Enum.InfoType.Asset).Name
end
end)
end
end
end)
end)
end
Alright, I meant the structure of the gui in the explorer, but, I think the issue is due to the Sound not being in the Handle. Is there any errors in the output?