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

How do I change an IntegerValue's name with script?

Asked by 10 years ago
GameState = Instance.new("IntValue")
GameState.Parent = f.Backpack
f.Backpack.Value.name = GameState
f.Backpack.GameState.Value = 1

Why isn't this working? Why isn't it changing the name? I don't see what's wrong with it?

1 answer

Log in to vote
2
Answered by 10 years ago

Why not just do

GameState = Instance.new("IntValue")
GameState.Parent = f.Backpack
GameState.Name="GameState"
GameState.Value=1
Ad

Answer this question