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

how do I use FromNormalId? Im trying to make a part that flies in the direction the part is facing.

Asked by
Galicate 106
5 years ago

Hers my script. But the bullet kinda just falls to the ground...

function FireBullet(Player, Tool, Damage)
    local Bullet = game:GetService("ServerStorage").Bullet:Clone()
    Bullet.Parent = workspace
    Bullet.Position = Tool.Main.Position
    Bullet.Orientation = Tool.Main.Orientation
    Bullet.Velocity = Vector3.FromNormalId(Enum.NormalId.Right)
end

game:GetService("ReplicatedStorage").FireBullet.OnServerEvent:Connect(FireBullet)

Answer this question