You can write your topic however you want, but you need to answer these questions:
-
I Want to make the Noob to throw balls in a width line.
-
The throw relativity is dependent on the world, I Want it to be on the Noob Primary part.
This when throwing at the back direction of the world:
And this is when I try to throw at the right direction of the world:
local t = 0.4
local PrimaryPart = Noob.PrimaryPart
local g = Vector3.new(0, -game.Workspace.Gravity, 0)
local x0 = PrimaryPart.CFrame * Vector3.new(0, 2, -2)
local Turn = false
for i = 1, 5 do
if Turn == false then
Turn = true
else
Turn = false
end
local AcidBall = game.ServerStorage["None playable tools."]["Acid stone."]:Clone()
AcidBall:SetAttribute("Holder", Player.Name)
AcidBall:SetAttribute("Damage", Noob:GetAttribute("Damage"))
AcidBall.Parent = workspace
if Turn == true then
AcidBall.Position = Noob.PrimaryPart.Position + Vector3.new(-i * 2, 0, 0)
else
AcidBall.Position = Noob.PrimaryPart.Position + Vector3.new(i * 2, 0, 0)
end
local v0 = ((Target - x0) + Vector3.new(0, 3, -4) - 0.5 * g * t * t) / t
AcidBall.AssemblyLinearVelocity = v0
end
.