I dont know why but it says 18:37:50.425 - Workspace.Script:4: attempt to index field 'Character' (a nil value)
script:
game.Players.PlayerAdded:connect(function(plr) p=game.ReplicatedStorage.TestPet:Clone() p.Parent = game.Workspace p.Position = plr.Character.Torso.Position end)
If spyspace12's answer doesn't work, just use a loop:
while plr.Character == nil do wait() end
(put this between lines 1 and 2)
Again
p.Position = plr:WaitForChild('Character').Torso.Position