I’m trying to make a cone shaped range UI for my tower defense game. Ive already made the the big range circle UI for my towers, but I’m just confused on how you make the “cone” shaped one.
Here is an image refrence to what im trying to do.
Looks like it’s just two straight beams, right?
Something like
local cf0 = char.PrimaryPart.CFrame
local cf1 = cf0 * CFrame.Angles(0, coneAngle / 2, 0) --rotate to the left
cf1 *= CFrame.new(0, 0, -range) --move forward to the edge of range
local cf1 = cf0 * CFrame.Angles(0, -coneAngle / 2, 0) --rotate to the right
cf2 *= CFrame.new(0, 0, -range) --move forward to the edge of range
Create att0, att1 and att2 with CFrames cf0, cf1, cf2. Connect att0-att1 and att0-att2 with beams