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 8 years ago

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

01using = false
02 
03tool = script.Parent
04function onClicked()
05    if using == false then
06    using = true
07    local part1 = game.Lighting.Raycast:Clone()
08    part1.Transparency = 0.4
09    part1.Parent = game.Workspace
10    part1.Position = script.Parent.Parent.Head.Position
11    wait(1)
12    using = false
13    end
14end
15 
View all 21 lines...

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 — 8y
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 — 8y

Answer this question