local target = script.Parent.Parent.Target.Text
local rank = script.Parent.Parent.Rank.Text
local change = script.Parent
local Players = game:GetService("Players")
change.MouseButton1Click:Connect(function()
print(target)
local Target = game.Workspace:WaitForChild(target123)
if Target then
print(Target.Name)
Target.Head.title.rank.Text = rank
end
end)
the print statement in line 6 is always printing target for no reason what could be the cause?

4 comments
Maybe try not to put numbers in a variable name and also it’s probably something wrong where you locate the objects, also don’t save the text value to a variable try saving the label to a variable instead of the text value o it
it dosent work it i change the varible to target either
Well that means that it is something wrong elsewhere, because you are printing the text value of the object, which means that either there is something wrong in the text box, or you are locating the wrong object, ex. You a
In the target variable above, remove .Text and add it where your print is. print(target.Text)