local sides = 6
local radius = 4
for i=1,sides do
local s = math.tan(math.rad(180/sides))*radius
print(s)
side = Instance.new("Part")
side.Material = "DiamondPlate"
side.Parent = game.Players.LocalPlayer.Character.Head
side.Anchored = true
side.Size = Vector3.new(.1,.1,2*s)
side.TopSurface = "Smooth"
side.BottomSurface = "Smooth"
side.BrickColor = BrickColor.Yellow()
side.CFrame = side.Parent.CFrame * CFrame.new(0,2,0) * CFrame.Angles(0,math.rad(360/sides*i),0) * CFrame.new(radius,0,0)
end
why does it keep giving me this error? ('=' expected near 'is')

1 comment
edit: it works fine on studio, but im trying to get it to run on script builder