We’re going to use Body Velocity to make the bomb fly in a curved line. But I don’t know how Because I am not good at math. So please help me. The script is here.
local remote = game.ReplicatedStorage.bomb.bombevent
local player = game.Players.LocalPlayer
remote.OnServerEvent:Connect(function(plr)
local chr = plr.Character or plr.CharacterAdded:Wait()
local hrp = chr:FindFirstChild('HumanoidRootPart')
local b = game.ReplicatedStorage.bomb.Handle:Clone()
b.Parent = workspace
local v = Instance.new('BodyVelocity', b)
b.Position = chr.RightHand.Position + Vector3.new(0,1.5,0)
b.fire.Position = chr.RightHand.Position + Vector3.new(0,1.5,0)
b.Part.Position = chr.RightHand.Position + Vector3.new(0,1.5,0)
v.Velocity = chr.Head.CFrame.LookVector * Vector3.new(100,1000,100)
v.MaxForce = Vector3.new(10000, 100000, 10000)
wait(0.95)
b["Explosions 9 (SFX)"]:Play()
local exp = Instance.new('Explosion', workspace)
exp.Position = b.Position
b:Destroy()
end)