I'm trying to change the text of a Textbox every 0.1 seconds but i keep ending up with this error. 19:21:44.656 - Players.Player.PlayerGui.ScreenGui.PS.TextBox.Script:3: attempt to index local 'plr' (a nil value) 19:21:44.657 - Stack Begin 19:21:44.657 - Script 'Players.Player.PlayerGui.ScreenGui.PS.TextBox.Script', Line 3 19:21:44.658 - Stack End
local name = script.Parent.Parent.Parent.Parent.Parent.Name
local plr = game.Workspace:FindFirstChild(name)
local health = plr:FindFirstChild("Humanoid").Health
local text = script.Parent.Text
while true do
text = health
wait(0.1)
end
Thanks

1 comment
Thank you this helped a lot!!!