local txt = game.Players.LocalPlayer.PlayerGui.text.Frame.text
I tried doing that but it says "text is not a valid member of PlayerGui"
local txt = game.Players.LocalPlayer.PlayerGui:FindFirstChild("text").Frame.text
This one also doesnt work it'll say "Frame is not a valid member of text"
if you know how to fix this please put it in the comments?