Script:
local Players = game.Players:GetPlayers()
local BodyVelocity = script.Parent.BodyVelocity
repeat
wait()
Players = game.Players:GetPlayers()
until #Players > 0
local Settings = script.Parent.Settings
local Aiming = script.Parent.Aiming
local Target = script.Parent.Target.Value
wait(Settings.AimTime.Value)
Aiming.Value = false
script.Parent.Anchored = false
script.Parent.BodyVelocity.Velocity = CFrame.new(-script.Parent.Position, -Target.Position).Position
Error:
Workspace.RockProjectile.Main:20: attempt to index nil with 'Position'

1 comment
Quick note that I used this exact same line of code 2 hours ago and it worked perfectly fine