local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
Mouse.KeyDown:connect(function(key)
key = key:lower()
if (key == "q") then
if Mouse.Target:FindFirstChild("SBF") then
if player.PlayerGui:FindFirstChild("InventoryGui").Frame.one.Emp.Value == "0" then --EDIT: I PUT "" For the 0
player.PlayerGui:FindFirstChild("Nam").Value = Mouse.Target:FindFirstChild("ITN").Value
end
end
end
end)
I'm having trouble on the line after "if Mouse.Target:FindFirstChild("SBF") then" It's not working after that. I tested with a print and nothing pops up. am I naming things worng? Please do help if any questions please do let me know.

2 comments
We cannot help you without proper explanation, and a hierarchy.
NM fixed it