The script below used to work but Roblox broke it. Any help?
local t = script.Parent.Trainer.Value
local g = Instance.new("BodyGyro",script.Parent)
while wait() do
local list = game.Workspace:GetChildren()
for i = 1, #list do
local n = list[i]
if n.Name == t then
local torso = n:FindFirstChild("Torso")
script.Parent:WaitForChild("Pokemon"):MoveTo(torso.Position - (torso.CFrame.lookVector * 3),torso)
g.cframe = CFrame.new(script.Parent.Torso.Position,torso.Position)
end
end
end

1 comment
I have failed to understand why there are two values in the CFrame.new() on line 10. I have never seen two values in a single CFrame.new, so I am curious why they are there.