Can't find string value

Hello i’m trying to find string value, But print types nothing in the output. I don’t know why, there’s my code
in Global

local foctarget = Player.Backpack.FocusTarget
	print (foctarget.Value)
--in Local
local Target = Player.Backpack.FocusTarget

Target.Value = MouseTarget.Parent.Name

I checked Player Backpack and there was the name, but it still print nothing in output.

One of the reasons is you can’t change the value on client-side (localscript). It will only change on the client but not the server.

1 Like

I dont know, but in case the local script is located in workspace, then u need to change that and put it into StarterPack

Your string value may be just “”, try printing something that is guaranteed not to be an empty string to see if it works.

If it doesn’t that specific code isn’t running.