How would I make this follow parts/players without a humanoid?
01 | hungries = script.Parent |
06 | for _,v in pairs (game.Workspace:GetChildren()) do |
08 | magnitude = (hungries.Position - v.Position).magnitude |
11 | local b = Instance.new( 'BodyAngularVelocity' ) |
12 | b.maxTorque = Vector 3. new( math.huge , math.huge , math.huge ) |
13 | b.angularvelocity = Vector 3. new( 0 , magnitude, 0 ) |
I dont have a humanoid in the model so I cant use MoveTo(). Atm it prints any random magnitude but I will add a findnearest part bit to it in the future. Also do parts and players share a common variable that could make it follow both? thx