I'm trying to make life easy for myself (believe it or not) and make a script that detects if a part is vertical or horizontal. But it does literally nothing.
local model2 = workspace.FenceR:GetChildren() local storageVertical = Instance.new("Folder",workspace.FenceR) for i,v in pairs(model2) do if v.Name ~= "Folder" then if v.Rotation == Vector3.new(180, -0, -180) then v.Name = "Vertical" v.Parent = storageVertical end end end
I've added a print to it, and it can't detect it. It will print.
local model2 = workspace.FenceR:GetChildren() local storageVertical = Instance.new("Folder",workspace.FenceR) for i,v in pairs(model2) do if v.Name ~= "Folder" then if v.Rotation == Vector3.new(180, -0, -180) then v.Name = "Vertical" v.Parent = storageVertical else print("Breh i ain't workin") end end end