Hello developers!!!
There is something that I cannot explain myself, to make my own breakable glass system, the glass (which is a Part) calculates the points according to its size and position, this system I already did a while ago, and it suits me perfectly. the places where I already implemented it, but there is something strange, to put it in my current place, the calculations in the X do not work, it is only changed in the Y, which I checked by putting a table with 2 points in the space, which one It is the center above the crystal (I only modified the Y) and the other in the central right part (I only modified the X) and I set a part to be created at these coordinates:
local Points = {
Point1 = Glass.Position + Vector3.new(0, Glass.Size.Y * .5, 0);
Point2 = Glass.Position + Vector3.new(Glass.Size.X * .5, 0, 0)
};
for _, v in pairs(Points) do
local P = Instance.new("Part")
P.Anchored = true
P.Position = v
P.Parent = workspace
end
And this is how they look:
Any solution?