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

My character loading script does not work? (solved cus im dumb)

Asked by 4 years ago
Edited 4 years ago

So, I am trying to make it so my dummy model copys the player model of the player when they join. It works just fine when I put a direct userid in. However, when I try to grab the user ID from the player when they join, it doesn't work. I get the error "Userid is not a valid member of player" Any help is appreciated

function playerAdded(player)
    if player.name ~= "ROBLOX" then


    game.Workspace.dummyloader.Configuration.userId.Value = player.Userid
    end
end

game.Players.PlayerAdded:Connect(playerAdded)
0
I think it's "UserId" and not "Userid" or "userId" (both with capital letters). Also, at line 2, it's "Name" and not "name" (capital letters too) TheRealPotatoChips 793 — 4y
0
how such a simple fix, me dumb, sorry stonez12345678910 4 — 4y

Answer this question