of     1   

IBlockMasterI
#143106719Saturday, August 09, 2014 7:07 PM GMT

So I want it when the part spawns in, it's directly in front of the player. I have this: The script is inside of the PlayerGui which is inside of game.Players.Player torso = game.Workspace:FindFirstChild(script.Parent.Parent.Name).Torso detector = game.Lighting.EarthDetector:Clone() if script.Parent.Parent.TeamColor == game.Teams["Earth Team"].TeamColor then detector.Parent = game.Workspace detector:MoveTo(torso.Position+Vector3.new(0,0,-10)) if detector:GetModelCFrame().y > torso.CFrame.y + 2 then torso.CFrame = detector.EarthDetector.CFrame wait(2) detector.Parent = game.Lighting end end Now the issue is, when the part spawns in it spawn in always in one direction from the player, like always one one side of the player. Relative to the player's position, but not the player's angle. For instance, if I'm looking forward, it will spawn to the left. If I'm looking left, it will spawn to the left. If I'm looking back, it will spawn to the left. It always spawns in the exact same spot relative to the player's position, so if I turn but not move the block will stay in place. Does anyone see the issue here?
IBlockMasterI
#143109337Saturday, August 09, 2014 7:30 PM GMT

It worked at first, then I added the teleport statement, it didn't work at that point. When I remove the teleport part, it still fails to work. I'm assuming I messed up the MoveTo method, however I can't see how specifically..
jonesj627
#143109584Saturday, August 09, 2014 7:32 PM GMT

use lookvector to see which way the torso is facing director:MoveTo(torso.CFrame.p * (torso.CFrame.lookVector * 1)) not sure if i typed that out right but yeah look up look vector

    of     1