Hey i am new to scripting and i try to make a block(part ) to follow you just a little bit behind like 5 studs but i cant figure it out in anyway.
function onPlayerEntered(player) player.CharacterAdded:connect(function(char) while wait() do script.Parent.CFrame = CFrame.new(char.Torso.Position) end end) end
game.Players.PlayerAdded:connect(onPlayerEntered)
game.Players.PlayerAdded:connect(function(player) local torso = player.Character.Torso if torso then torso.CFrame = CFrame.new(torso.Position.x-5,torso.Position.y,torso.Position.z) --or something end end)
Please put it in a code block next time.