Hello there!
I’ve got a little problem in the script.
The problem that I want to reference a value of an IntValue that has a name of player’s UserId and simply can’t do that.
Script itself:
Instance.new("Hint",workspace).Text = ""
jump_to = 25
script.Parent.Touched:connect(function(part)
h = part.Parent:FindFirstChild("Humanoid")
if h then
b = game.Players:playerFromCharacter(part.Parent)
if b then
b.leaderstats.Stage.Value = jump_to
local bid = b.UserId
game.ServerStorage.CheckpointData[bid].Value = jump_to
h.Health = 0
end
end
end)
As you see, I am trying to get player’s UserId with local bid = b.UserId. And reference a value with game.ServerStorage.CheckpointData[bid].Value that is located in server storage

But it gives me an error: 
And I would like to know how to reference that value because it is really needed 