Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Relative orientation from position?

Im attempting to make a lightning bolt and the first part goes up and to the right, at an orientation of 30,30,30 but the problem is i need to come out from the ball always up and to the right how would i do this?

what i want it to always look like: https://gyazo.com/b1c85759d639962cfee13b56fd194bfa

what it sometimes looks like: https://gyazo.com/6fffd79a701e6ee8fc92a416f3b17f1b

local first = Instance.new("Part",workspace)
first.Color = Color3.fromRGB(255, 255, 0)
first.Material = Enum.Material.Neon
first.Position = tool.Handle.Position
first.CanCollide = false
first.Orientation = Vector3.new(30,30,30)
first.Size = Vector3.new(.5,5,.5)
first.Anchored = true

1 answer

✓ Accepted answer
first.CFrame = orb.CFrame * CFrame.Angles(30,30,30)

This discussion is preserved as it was. New answers, comments, and votes are closed.