Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

8 comments

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

0

also XpNow and XPNow are different cases

0

Yeah that too

0

try adding .Value.............................

0

^greatneilderp

0

Woops, thanks so much guys. Its working!

0

Have you ever heard of a thing called a variable?

0

Yes, I dont use them a lot.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.