So I’m working on something and I’m stuck on something, I’m trying to make a part follow a player’s exact movements on the opposite side. Let’s say their position is 10,0,5. The trackers Position would be -10,0,-5. I have an example on what I’m trying to do. I have the code for what I’m trying to do (I have completed it tracking you like the eye models)
local magnitude
local part1 = script.Parent
local magnitude
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local part2 = char.HumanoidRootPart
local magnitude = (char.HumanoidRootPart.Position - game.workspace.middle.middlePart.Position).Magnitude
game:GetService("RunService").Stepped:Connect(function()
magnitude = (char.HumanoidRootPart.Position - game.workspace.middle.middlePart.Position).Magnitude
part1.CFrame = CFrame.new(part1.Position, part2.Position)
script.Parent.Position = Vector3.new(0,0,0)
end)
end)
end)
(this code is inside the Tracker Part btw.)
Any help would be great!