Hello, I want to make a move with bodyvelocity I am new to it so i dont know that much. The problem I have right now is that it doesn’t move at all it is maybe bc i forgot something.
script.Parent.grenadeEv.OnServerEvent:Connect(function(player)
if not grenadeON then return end
local Character = player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local hrp = player.Character.HumanoidRootPart
local grenade = Instance.new("Part")
grenade.Shape = Enum.PartType.Ball
grenade.Position = player.Character.HumanoidRootPart.Position
grenade.CanCollide = false
grenade.Parent = workspace
grenade.Anchored = true
grenade.Color = Color3.fromHSV(0.991667, 1, 0.941176)
grenade.Transparency = 0.5
grenade.Material = Enum.Material.SmoothPlastic
grenade.Name = player.Name.."Grenade"
local bv = Instance.new("BodyVelocity",grenade)
bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bv.Velocity = hrp.CFrame.lookVector * 50
bv.Parent = grenade
end)
Does anyone has a idea what the problem is?
Thanks you