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

needing help trying to a part in the direction of camera and surface index?

Asked by
x28_97 -9
3 years ago

hi there so im trying to create a part with a decal that faces upwards and take on the z-index i think is the term of the surface it was created one for example if i created the part on a building the part should face up and have the z index of the part/building it was created on

local part = Instance.new("Part")
    part.Anchored = true
    part.CanCollide = false 
    part.Size = Vector3.new(7, 0.1, 7)
    part.Position = Vector3.new(0, 5, 0)
    part.Transparency=1
    part.CFrame = CFrame.new(position)
    part.Parent = workspace
    --part.CFrame = part.CFrame * CFrame.Angles(0, math.pi/1, 0) --my attept to make rotate upwards it works but its always facing a direction and not the direction of the camera :/
0
uuhhh what RunKittenzRComin 170 — 3y

Answer this question