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 and not the way the actual object faces?

Asked by 5 years ago

So i have a move that shoots an object. The object is a clone from an object in the workspace. I wanted make the object face the way i wanted it to from anyagnle its shot from as if it wasnt even cloned.

here is the script:

local Tool = script.Parent


Tool.RemoteEvent.OnServerEvent:Connect(function(Player, Debounce)
    local Character = Player.Character
    local hum = Character.Humanoid
    Debounce = true
    local GetSugaTensho = game.Workspace["Getsuga tensho"]:Clone()
    GetSugaTensho.CFrame = Tool.Handle.CFrame
    GetSugaTensho.Anchored = false
    GetSugaTensho.CanCollide = false
    GetSugaTensho.Parent = Character
    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
short answer : Cframe.new(pos,lookat) theking48989987 2147 — 5y
0
Add this under GetSugaTensho: GetSugaTensho.Orientation = Vector3.new(Rotation Degree Wanted) TheRiseOfTheTyrant 0 — 5y
0
i already tried that but it didnt work cause everytime i faced a different direction, it faced differently SplendidKyle567 8 — 5y

Answer this question