I made a script where a mesh part is supposed to be inside a new players torso whenever a new player joins. The thing is, when I hit play, it says "ServerScriptService.Script:4: attempt to index field 'Character' (a nil value)". Heres the script: (I put it in a script, but also tested it in a local script, but I hit Play and the local script did nothing.)
game.Players.PlayerAdded:connect(function(player)
local meshclone = game.ServerStorage.MeshPart:Clone()
local plr = game.Players.LocalPlayer
meshclone.Parent = plr.Character.Torso
end)
