So I have a script that I made and put into ServerScriptService. It is suppoed to first, create the variable "PlrBlk". Next it is supposed to use the name of the play stored in PlrBlk and find the player in the workspace. That is asigned to the variable "plr". The variable humanoid represents "Humanoid", found inside plr. Back to line 3. The error is that the value of plr is nil and I can't figure out why. Thanks in Advance
game.Players.PlayerAdded:Connect(function(player)
local PlrBlk = player.Name
local plr = workspace:FindFirstChild(PlrBlk)
local humanoid = plr:FindFirstChild("Humanoid")
humanoid.Walkspeed = 0
end)

1 comment
Oh, I see thx