local uis = game:GetService("UserInputService")
local pickup = "F"
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local gui = player:WaitForChild("PlayerGui")
local info = gui:WaitForChild("PickupInfo")
uis.InputChanged:Connect(function()
if mouse.Target then
if mouse.Target:FindFirstChild("Item") then
local item = mouse.Target
info.Adornee = item
info.itemname = item.Name --this is the problem
info.Enabled = true
else
info.Adornee = nil
info.Enabled = false
end
end
end)
Above is my script and it does not find my textlabel
Can someone explain what is going on for me and how I coould fix this :)

9 comments
what is itemname? is it a child or an instance?
itemname is a child of PickupInfo, the script says its not a member of it
https://ibb.co/RNvSwBM
what do you wanna change of itemname? the name or text?
what do you wanna change of itemname? the name or text?
I want the text to change to the item's name info.itemname = item.Name
Oh sorry forgot to add .Text
Sorry for wasting your time
It's ok.