Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me with my line of code that keeps giving me errors and I dont know why?

Asked by 5 years ago

This line of code keeps giving me an error, that says "Gui is not a valid member of Players" can someone fix it?

game.Players.LocalPlayer.PlayerGui.Gui.XP.XpNow = game.Players.Gui.XP.XPNow + 2
0
I think you forgot "LocalPlayer.PlayerGui" in the second one. Making it game.Players.LocalPlayer.PlayerGui.Gui.XP.XpNow = game.Players.LocalPlayer.PlayerGui.Gui.XP.XPNow + 2 fr2013 88 — 5y
0
also XpNow and XPNow are different cases radusavin366 617 — 5y
0
Yeah that too fr2013 88 — 5y
0
try adding .Value............................. greatneil80 2647 — 5y
View all comments (4 more)
0
^greatneilderp bhqpping 80 — 5y
0
Woops, thanks so much guys. Its working! protectiverobos -50 — 5y
0
Have you ever heard of a thing called a variable? User#21908 42 — 5y
0
Yes, I dont use them a lot. protectiverobos -50 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

What they said to me in the comments^

Ad

Answer this question