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

How do i make a cloned object face the way i want it to?

Asked by 5 years ago

I am making a tool shoot something and its not facong the way i want it to from every angle cause its cloned. Is there a way to to fix this and make it shoot the way i want it to?

script:

local Tool = script.Parent


Tool.RemoteEvent.OnServerEvent:Connect(function(Player, Debounce)
    local Character = Player.Character
    Debounce = true
    local GetSugaTensho = game.Workspace["Getsuga tensho"]:Clone()
    GetSugaTensho.CFrame = Tool.Handle.CFrame
    GetSugaTensho.Anchored = false
    GetSugaTensho.CanCollide = false
    local Bv = Instance.new("BodyVelocity")
    Bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
    Bv.Velocity = Character.HumanoidRootPart.CFrame.lookVector * 50
    Bv.Parent = GetSugaTensho
end)
0
help SplendidKyle567 8 — 5y
0
use the CFrame constructor; CFrame.new(Vector3 pos, Vector3 lookAt) User#23365 30 — 5y

Answer this question