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

How do I spawn a model rotate the direction the player is looking?

Asked by 7 years ago

So.... I made a Kamehameha script .. (inside a tool)

using = false

tool = script.Parent
function onClicked()
    if using == false then
    using = true
    local part1 = game.Lighting.Raycast:Clone()
    part1.Transparency = 0.4
    part1.Parent = game.Workspace
    part1.Position = script.Parent.Parent.Head.Position
    wait(1)
    using = false
    end
end


function onEquipped(mouse)
mouse.Button1Down:connect(onClicked)
end

tool.Equipped:connect(onEquipped)

but the only thing is,when ever the "Raycast" spawned, it always rotate the same direction. that's the best I can explain XD PLEASE? I need help.

0
The best I could think of would be to weld all the parts together, add a center point, and have all the parts revolve around that center point's position, lookvector, and rotation. Extraordinarius -5 — 7y
0
Uhmm....I've weld the models but ... how do I add a center point or what do you mean "a center point" is? Danielkaya 58 — 7y

Answer this question