Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make my Axe throw forward?

Asked by 4 years ago
Edited 4 years ago

I don't know if you would call this a request but,

I'm trying to make a throwable Axe but it throw not straight but on the side how do I make so no matter what the axe will throw perfectly straight on with the blade the blade side is the left side.

Here's my script.

    local character = game.Workspace:WaitForChild(player.Name)
    local ThrowDamage = player:WaitForChild("Strength").Value
    character.StormbreakerT.Handle.Transparency = 1
    CS = game.ReplicatedStorage.StormbreakerM2.StormbreakerM:Clone()
    CS.Orientation = character.StormbreakerT.Handle.Orientation
    CS.Owner.Value = character
    bav = CS.BodyAngularVelocity
    bav.AngularVelocity = CS.CFrame:vectorToWorldSpace(Vector3.new(0, 0, 15))
    CS.BodyPosition.D = 0
    CS.BodyPosition.MaxForce = Vector3.new(0,0,0)
    CS.BodyPosition.P = 0
    CS.BodyPosition.Position = Vector3.new(0,0,0)
    CS.Parent = game.Workspace
    CS.Position = character.StormbreakerT.Handle.Position
    BV = CS.BodyVelocity
    BV.MaxForce = Vector3.new(4000,4000,4000)
    BV.P = 1250
    BV.Velocity = mouse
    CS.Touched:Connect(function(hit)
        if hit.Parent.Name == "Outrider" or hit.Parent.Name == "Hela" and hit.Parent ~= CS.Owner.Value then
            hit.Parent.Humanoid:TakeDamage(ThrowDamage)
            hit.Parent.Killer.Value = CS.Owner.Value
        end
    end)
    character.Humanoid.Died:Connect(function(dead)
        CS:destroy()
    end)
0
You don't need BodyPosition OnaKat 444 — 4y
0
that does not help my problem and thats for summoning my axe its Stormbreaker Boindoin -7 — 4y
0
Use LookVector with BodyPosition.Position Alphexus 498 — 4y
0
that wont work for 2 reasons, First is the front side of the axe is the left side so that will make the axe fly on the wrong side Boindoin -7 — 4y
View all comments (4 more)
0
Second body position is for summoning not for throwing Boindoin -7 — 4y
0
body velocity is for throwing Boindoin -7 — 4y
0
what alpeux commented except turn the axe model sideways so when it spawns itll be straight on 50ShadesofLamps 5 — 4y
0
its a mesh and my character moves so it will never be straight on Boindoin -7 — 4y

Answer this question